Friendbase is a web-based application that allows you to store and manage your contact list of friends. It is built using Node.js and MongoDB as the database. With Friendbase, you can easily add, edit, and delete your friend's contact details.
- Add a new friend to your contact list with their name, email, phone number, and address
- Edit an existing friend's contact details
- Delete a friend from your contact list
- Search for a friend in your contact list by name or email
- User-friendly UI for easy navigation
-
Clone the repository to your local machine.
git clone https://github.com/<username>/friendbase.git
-
Install the dependencies.
cd friendbase
npm install
-
Set up the database connection.
- Create a MongoDB database named
friendbase
. - Create a collection named
friends
. - Create a user with read/write access to the
friendbase
database.
- Create a MongoDB database named
-
Create a
.env
file in the root directory of the project and add the following configuration details.DB_URI=mongodb://<username>:<password>@<host>:<port>/friendbase
PORT=8000
-
Start the server.
npm start
Friendbase provides the following API endpoints to perform CRUD operations on the contacts collection.
Endpoint | HTTP Method | Description |
---|---|---|
/my-contacts |
GET | Get all contacts |
/create-contact |
POST | Add a new contact |
/delete-contact/:id |
GET | Delete a contact by ID |
- Node.js
- MongoDB
- Express.js
- Bootstrap
- Handlebars
Contributions to Friendbase are always welcome! Please feel free to submit a pull request or create an issue if you encounter any problems or have suggestions for improvement.
Friendbase is licensed under the MIT License. See the LICENSE file for more information.