A phonebook web app where users can create, update, delete, and filter contacts. Live at fullpages.herokuapp.com.
To replace a contact's number, create a new contact with the
same name and select OK
on the alert that pops up.
- Backend: Node.js - Express
- Mongoose to connect to MongoDB
- Morgan to log requests
- Mongoose Unique Validator to prevent duplicate names
- Dotenv to hide MongoDB URI
- Frontend: React
- Axios to send HTTP requests to backend
- Database: MongoDB
- Deployed with Heroku
Clone the repository and run npm install
in phonebook-web-app
and phonebook-web-app/react-ui
.
Copy the contents of .env.template
into an .env
file.
Create a cluster and a database user in
MongoDB Atlas. Then,
connect your application and set the value of MONGODB_URI
in .env
to the connection string.
Inside the configured phonebook-web-app
project, you can
run some commands:
Runs server with REST API endpoints and production build.
Has same functionality as npm start
, in addition to
automatic updates with changes to code.
Creates or updates production build and copies the static files into the backend.
Deploys the project to Heroku.
Creates build, commits to GitHub, and deploys project.
Shows Heroku logs.
Runs ESLint.