node project
- NODEJS
- MSSQL
-
Clone this repo
-
npm install
- Create a .env file and add these environment variables. Use a development DB to avoid your valuable data being overwritten. APPHOST and PORT are optional for a local server. Hosted, these variables will help send the correct links in emails
DB_USER
DB_PWD
DB_NAME
DB_SERVER
SECRET_KEY
NODEMAILER_EMAIL
NODEMAILER_PASSWORD
APPHOST
PORT
- Run
node DATABASE/setupdb
to setup the database - Run
node DATABASE/dummy
to add dummy data to your DB.
An admin will be automatically added with credentials:
{
"email": "[email protected]",
"password": "Password@123"
}
-
Run
npm run dev
to start up the development server -
Go to /docs for REST API docs