- Server Port :
3000tcp - Base de datos oficial:
mongodb://localhost:27017/iPost - Base de datos testing:
mongodb://localhost:27017/testiPost
Nodemon: npm install -g nodemon
Express: npm install express
Body-parser: npm install body-parser
Cors: npm install cors
Mongoose: npm install mongoose
Express-fileupload: npm install express-fileupload
JSON Web Token: npm install jsonwebtoken
Bcryp: npm install bcrypt
Install all dependencies: npm install express body-parser cors mongoose express-fileupload jsonwebtoken bcrypt
-
Compile js code:
tsc -w -
Start mongdb server
sudo systemctl start mongod/ -
start service
nodemon dist/