Skip to content

Ashar2shahid/tricog-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tricog Demo API

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.

Pre-Installation

config/db-config.json

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

config/server-config.json

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

Installation

Use npm to install the app

npm install

Usage

use npm to start the app after installation

npm start

Contributing

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.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages