This is a nodejs API for tricog that connects to a database to store and retrieve user information, along with validation for inputs and authentication for retrieval.
Create a file name db-config.json and place the following contents based on your database settings:
{
"host": "YOUR HOST ADDRESS",
"user": "YOUR DATABASE USER USERNAME",
"password": "YOUR DATABASE USER PASSWORD",
"database": "YOUR DATABASE NAME",
"waitForConnections": true,
"connectionLimit": 10,
"queueLimit": 0
}
Place the db-config.json inside the config folder
Create a file name server-config.json and place the following contents:
{
"secretKey": "YOUR_SECRET_KEY",
"iv": "YOUR INITIALISATION_VECTOR",
"ServerSecret": "YOUR_SERVER_SECRET"
}
Place the server-config.json inside the config folder
Use npm to install the app
npm install
use npm to start the app after installation
npm start
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.