Skip to content

Backend API for a Phonebook application using Node.js, Express, MongoDB, and Mongoose. Built for the Full Stack Open course by the University of Helsinki.

Notifications You must be signed in to change notification settings

pvalde/fullstackopen-phonebook-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phonebook Backend

Backend for the Phonebook application built as part of the Full Stack Open course by the University of Helsinki.

This backend provides a RESTful API for managing contacts.

Live application

API endpoints

The following endpoints are available:

  • GET /api/persons
  • GET /api/persons/:id
  • POST /api/persons
  • PUT /api/persons/:id
  • DELETE /api/persons/:id

Tech stack

  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • dotenv
  • Morgan

Deployment

  • PM2 for Node.js process management
  • Nginx as a reverse proxy
  • Hosted on a virtual private server
  • GitHub Actions for deployment automation.

Environment variables

MONGODB_URI=<YOUR_MONGODB_URI>
PORT=<PORT_NUMBER>

Running the project locally

npm install
npm start

Frontend

The frontend is built using React and compiled into production build.

License

MIT

About

Backend API for a Phonebook application using Node.js, Express, MongoDB, and Mongoose. Built for the Full Stack Open course by the University of Helsinki.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published