TrailerDb Backend
Backend for TrailerDb. Frontend here
Installation
In the root folder, run npm install
For running in development, create a file called .env
in the root directory of the project with the following vars defined:
MONGO_URI=mongodb://user:mongo.server.com:27017/collection
JWT_SECRET=YourSuperSecretToken
If running in production, make sure to set those config/env vars
Starting and stopping
Running npm start
will start the server using forever, and running npm stop
will stop it.
npm run status
will list the forever processes that are running.