-
Notifications
You must be signed in to change notification settings - Fork 0
Build deploy documentation
-
Clone the repository via
git clone https://github.com/amosproj/amos-ss2021-project2-context-map.git
-
Install node from https://nodejs.org/en/ and make sure to add your installation directory to PATH.
It is required to install node with version 12.x or higher. -
Install docker from https://docs.docker.com/get-docker/.
-
Install
yarn
by running
npm i -g yarn
- Make sure that docker is running.
- Navigate to the
/build
directory within the repository clone. - Run
node start-database
. A new docker container with the nameneo4j-db
should run now. If it is only created, but does not run, run the container (you can check if the container is running with the commanddocker ps
in your terminal).
Run each of the scripts in the following order within a separate shell instance.
4. .\start-backend-dbg.ps1
5. .\start-frontend-dbg.ps1
Run each of the scripts in the following order.
4. ./start-backend-dbg.sh &
5. ./start-frontend-dbg.sh &
Once database, backend and frontend were built for one time, the backend and frontend can also be started by running
[4.] node start-backend-detached
[5.] node start-frontend-detached
⚠️ Deployment currently is only rudimentary. There is no automatic deployment. #151 tracks the deployability to docker containers for easy setup.
⚠️ There is currently no common deployment system in place. Current development focuses on this issue, which is tracked by #37 and #60.
- Make sure to have all the prerequisites from above
- Navigate to the
/frontend
in the project directory - Execute
yarn install
to install the dependencies - Execute
yarn build
to build the frontend project. The build output is located in thedist
folder. - To configure the frontend, add a
.env
file to the build output. An example is included in the project sources.
- Make sure to have all the prerequisites from above
- Navigate to the
/backend
in the project directory - Execute
yarn install
to install the dependencies - Execute
yarn build
to build the frontend project. The build output is located in thedist
folder. - To configure the frontend, add a
.env
file to the build output. An example is included in the project sources.