Getting startedΒΆ
This document describes the basic setup process for the development environment of the EWB-Wissensplattform. It is intended to acclimatize the user with the project. Please consult the developer documentation for a more in-depth view.
To start the EWB-Wissensplattform the tools docker and docker-compose are needed. Please read the installation manual on the docker website for your operating system. Furthermore node.js
is needed. It can be downloaded from the official website: https://nodejs.org/en/download/package-manager. Please install the latest LTS-version.
Note
We have tested the web application on linux, macOS and windows. However if you are not working on linux you need to install the Bash
-shell, since bash-scripts are used as utilities and as a entry-point to the application. One way to install Bash is when installing git under windows. In the following guide, linux commands are used. Please execute these commands in your installed Bash-shell.
Please clone the repository to a local location of your choice.
Create a .env-file from the the .env.example file.
cp .env.example .env
Execute the command
npm install
to install thenode.js
-dependencies these are used to transpile thescss
-stylesheets into a bundledcss
-stylesheet.Build the development environment execute:
./run build_initial dev
To interact with the web application a bash script with the name run
is used. This script is used to interact with the application.
In the
Wissensplattform
images like logos of in the database included tools, are not located in the repository. These files have to be downloaded from the following linkhttps://tubcloud.tu-berlin.de/f/3546499069
. Themedia
-folder has to be copied towebcentral/src/media/
.In a last step the database needs to be populated with data. For that a database dump is located inside the repository under
postgres/
with the extension.sql
.
Warning
Please note that the filename of the database dump may change. Please look for the latest file with the extension .sql
in the postgres/
-folder.
Start the setup process by calling the run script with the argument up_initial
and providing a database dump file.
./run up_initial dev postgres/filename.sql
After the data has been imported into the database, the web-application should restart and run in the terminal. You can now access the web-application via your favorite web browser via http://127.0.0.1:8000
.
Note
Please note that you are running the development version of the application. That version is sufficent to run on your local machine and is optimized for development. If you wish to deploy the application in a server environment please read production site.