This is a simple yet powerful Template for a backend server using express, typescript and mongodb.
Get TBackend Template
mkdir my_awesome_new_server && cd my_awesome_new_server && git init
git pull https://github.com/Tryferos/TBackend.git
Remember that you need to install the depedencies
npm i
Create a .env
file
PORT=3033
API_VERSION=1
NODE_ENV='development'
MONGO_URL="mongo db connection url"
Run nodemon to watch and transpile your code from typescript in real time.
npm run watch
Make your changes, then build and upload your server.
npm run build