8000 GitHub - gaborrr/api-endpoint-expressjs-mongodb: API endpoint with ExpressJS and mongoDB
[go: up one dir, main page]

Skip to content

gaborrr/api-endpoint-expressjs-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API endpoint with Express and mongoDB

Part 1 of 2 application API endpoint with Express and mongoDB http://localhost:3001/ Part 2 is getting the data from this API and display it in react components. http://localhost:3000/ link to repository:

Mongo DB database: "profile" colleciton: "profiledata"

example JSON file to import to Mongodb ./example/profile.profiledata.json

Steps to setup on local environment

  • use npm install

  • add .env file in root folder

  • add below line in .env file with your own connectionstring MONGODB_URI = "mongodb+srv://:@cluster0..."

  • npm start

  • open browser http://localhost:3001/


About

API endpoint with ExpressJS and mongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0