-
make a .env file in root of project to set local environment variable in development mode
-
Change INIT_DB in .env to the database that already exists in your Postgres (e.g. 'postgres' in Windows, and your user name in Linux)
-
If you use windows, in package.json change npm/test to:
jasmine&jasmine-node server_spec
-
If you do not have jasmine or jasmine-node, install them globally:
npm install -g jasmine npm install -g jasmine-node
-
run npm install:
npm install
-
at this point you should be able to run the project: npm start
-
then you should be able to run tests: npm test
aminazar / server Goto Github PK
View Code? Open in Web Editor NEWServer Side