Résolab is a social network project, created for children.
Its aim is to initiate children into developping good habits on social media, by experimenting Résolab.
Node > 10.16.3 Npm > 6.9.0
git clone
npm install # Install all dependencies
npm run dev # Runs the dev environment
npm start # Runs the prod environment
You have to create a .env
file in your root project directory.
`PORT=8000`
# Database host
DB_HOST=localhost
# Database Port
DB_PORT=3307
# Database username
DB_USER=user
# Database password
DB_PW=password
# Database name
DB_DATABASE=database
# Database
DB_DIALECT=mysql
# Database name for tests
DB_DATABASE_TEST=database
# Database port for tests
DB_PORT_TEST = 3306
# Database username for tests
DB_USER_TEST = user
# Database password for tests
DB_PW_TEST = password
-
Databases should be created by hand before
-
The real file should be named
.env
in the root directory
https://www.npmjs.com/package/dotenv -
If you deploy this to Heroku, place your env variables in Settings -> Config Vars/n`
|
|
|
|
`.`
├── chat # Socket's io handlers
├── middleware # All of the middlewares
├── routes # Api's routes
├── sequelize # Models's tables
│ └── models # Config files
├── test # Test for each route
└── webSockets # Websocket management
Certificate crt
and secretkey
files are used for the token's decoding.
|
They are produced with Chai and Mocha.
We are a 5 developpers team who did this project, formed of 4 front-end developers in React/JS and one back-end developper in PHP.