Go to your project root folder via command line
cd path/to/workspace/backend
Install node dependencies
npm install
Set the environment variables
-
Copy the pre-distributed .env.dist file to a .env file in the root directory of the backend project.
-
Modify the .env file if necessary.
Development environment
Run the backend (dev mode)
npm run dev
Production environment Run the backend (quick run)
# build only once before running (no need, if dist/ is generated)
npm run build
# run the server
npm run start
DB Access How to access DB with 3rd party tools
mongodb+srv://${DB_USER}:${DB_PASS}@flatmatch-frankfurt.mhfhi.mongodb.net/FlatMatch?retryWrites=true&w=majority