Skip to content

This is a template repository for easy creating express api with using MongoDB.

Notifications You must be signed in to change notification settings

DogukanTopcu/Express-MongoDB-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This project was bootstrapped with yarn init and created with these packages:

  • express
  • mongoose
  • nodemon
  • cors
  • dotenv
  • body-parser
  • colors

Available Scripts

yarn install | npm install

Installs node_modules folder according to the dependencies. This is the must command for starting the project.

yarn start | npm start

Runs the app in the development mode. Open http://localhost:5000 to view it in your browser. The page will reload when you make changes.
You may also see any lint errors in the console.

Updates

In this template project, packages were installed in these versions; "dependencies": { "body-parser": "^1.20.2", "colors": "^1.4.0",, "cors": "^2.8.5", "dotenv": "^16.0.3", "express": "^4.18.2", "mongoose": "^7.0.0", "nodemon": "^2.0.21" }

1. Re-install Packages

  • yarn remove <package-name> | npm uninstall <package-name>
  • yarn add <package-name> | npm install <package-name>

2. Change package.json File

  • Change the version of the package from package.json file to version what you want.
  • Download node_modules folder with new package versions.
    • yarn install | npm install

Releases

No releases published

Packages

No packages published