Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 788 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 788 Bytes

Running the server

db.users.update({email:"[email protected]"}, { $set: { isEvaluator: true } } )

To test this in a development environment, you should create a .env file for dotenv. This might look as follows for development.

PORT=4000
NODE_ENV=development

MONGODB_DATABASE=ross
MONGODB_PASS=thepassword
MONGODB_USER=theuser
MONGODB_HOST=localhost
MONGODB_PORT=27017

In production, the backend is built via a nix expression called default.nix which uses the pinned packages in yarn.nix; this relies on running yarn2nix, specifically

yarn2nix > yarn.nix

to capture the contents of yarn.lock in a format suitable for Nix.