This is a Django project that serves as a contact manager application. It is built using the Django REST framework and includes two apps: "accounts" for authentication and "contacts" for managing user contact information.
Before you get started, make sure you have the following installed:
-
Clone this repository to your local machine:
git clone https://github.com/your-username/django-contact-manager.git
-
Change your working directory to the project folder:
cd django-contact-manager
-
Install the project's dependencies using pip:
pip install -r requirements.txt
-
Create a Django superuser to manage the admin panel:
python manage.py createsuperuser
-
Apply database migrations:
python manage.py makemigrations python manage.py migrate
To run the application, use the following command:
python manage.py runserver
The development server will start, and you can access the application in your web browser at http://localhost:8000/.
The "accounts" app handles user authentication. You can register new users, log in, and manage user accounts.
The "contacts" app is responsible for managing user contact information. It provides CRUD (Create, Read, Update, Delete) functionality for contacts.
This project provides the following API endpoints:
/accounts/
- User registration and management./contacts/
- CRUD operations for managing user contacts.
This project uses django-simple-jwt for JWT (JSON Web Token) authentication. You need to obtain a JWT token by authenticating through the /accounts/token/
endpoint to access protected endpoints.
Feel free to contribute to this project by submitting issues, feature requests, or pull requests. Your contributions are welcome!
This project is open-source and available under the MIT License. Please review the license before using or distributing this code.
Enjoy using the Django Contact Manager! If you have any questions or need further assistance, feel free to reach out to me.