-
Notifications
You must be signed in to change notification settings - Fork 3
Getting started
- Postgres 12
- Node 12.xx + Yarn
- Docker for easy Setup
It may work with older Versions, but it was never tested with any other versions.
- Setup Docker on your machine and run these commands:
cd docker/deploy
docker-compose build
docker-compose up -d
Setup Docker on your machine and run these commands:
cd docker/development
docker-compose up -d
This will only setup the needed database and expose it on port5432
.
It may be beneficial if you want to run Front- and Backend directly from your terminal without going through the hassle of setting up postgres.
- Create the Postgres-DB with the provided Script here
- Install Node-Dependencies
cd backend/
yarn install
yarn start
cd ../frontend/
yarn install
yarn start
Swagger API Documentation is available under http://localhost:BackendPort/api-docs/
-
Edit Configuration-Files:
- Backend:
Copy
.env.bkup
to.env
in the same folder and change its contents to match your configuration - Frontend:
Edit
.env.development
&.env.production
to match your Configuration-
.env.development
is used, when the app is started viayarn start
-
.env.production
is used, when the app is built usingyarn build
-
Our Documentation explains every used parameter, if you have any questions regarding them.
- Backend:
Copy
-
Start Dev-Version: Run
yarn start
in the directories for backend and frontend in two separate Terminals. When you get Errors with MacOS see this Known-Issues. -
Optimized Production Build:
-
Frontend:
Run
yarn build
&npx serve build -l PORT
, where PORT is the Port you want your Application to be run on -
Backend:
Run
yarn babel-node
-
-
Note: In Linux you can use
screen
to run the project, without killing the process, when leaving the terminal
screen
cd ./...../frontend
npx serve build -l PORT
ctrl+a, ctrl+d (to detach from screen)
screen
cd ./...../backend
yarn start
ctrl+a, ctrl+d (to detach from screen)