Skip to content

Zenitude/server-node-ts-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-express-mongodb-ts

REST API made with Node Express MongoDb and TypeScript

Commands

  • npm start : start the server located in ./js/index.js
  • npm run tsc : To be used if a modification is made in a TypeScript file to compile all TypeScript files to ./js
  • npm run ejs: To be used if a modification is made in a Ejs file to copy all Ejs files to ./js

Environment variables

# Server
PORT=
HOST=

# MongoDB
URL_DATABASE=

# Keys Session & Token
SECRET_KEY_SESSION=
SECRET_KEY_TOKEN=