- Clone the project on your local device :
git clone https://github.com/monday-hazard/electronictales-contributions-bo.git
You may need to install SSH keys locally, see GitHub or Gitlab docs for this.
- Install dependencies
A custom script allows you to install node_modules
for both server and client sides of the project.
npm run dep
- Connect to your database
Create default.json
with your database logins (secret key etc)
- Test the connection
In a terminal in the current project, run :
npm run server
You're good if it says that the mangoose got the couleuvre. Otherwise, check if your Internect connection uses a proxy, or if you made an error in your default.json
In a terminal in the current project...
- to run the client and the server concurrently, run :
npm run dev
- to run the server only, run:
npm run server
- to run the client only, run:
npm run client
For the authentication middleware, add in your local default.json
a secret token as following :
{ "jwtToken": "value-of-your-secret-token" }