In order to setup project on your local machine, you need to have the following installed:
- Copy
.env.example
to.env
- Run
npm run docker-up
- The app is running on http://localhost:3000/
You can use the following commands:
npm run docker-up
: Start the environmentnpm run docker-down
: Stop the environmentnpm run docker-rebuild
: Rebuild containers
Once you run the app with npm run docker-up
, you can visit http://localhost:8080/ where Adminer database managment tool is running which you can use to connect to the database.
- NODE_PORT: The port on which the app is running
- DB_USER, DB_NAME, DB_PASSWORD: The database credentials
- DB_FORWARD_PORT: The port on which the database should be exposed (for connections outside of the Docker network)
- ADMINER_PORT: The port on which the Adminer is running