This project implements a RESTful API using Django and JSON Web Tokens (JWT) for authentication. Users can register, log in, reset their password, and obtain a JWT token that allows them to access protected API resources.
For testing, Mailtrap email has been used. Make sure you configure Mailtrap in your development environment. Here is an example of configuration in the .env file:
EMAIL_HOST=sandbox.smtp.mailtrap.io
EMAIL_HOST_USER=your_mailtrap_username
EMAIL_HOST_PASSWORD=your_mailtrap_password
EMAIL_PORT=2525
EMAIL_USE_TLS=True
DEFAULT_FROM_EMAIL=your_default_from_email@example.com
-
Clone the repository:
git clone https://github.com/EmanuelCG/musical-gear-api.git
-
Navigate to the project directory:
cd your_project
-
Install the dependencies:
pip install -r requirements.txt
-
Set up your virtual environment and activate it.
-
Run the development server:
python manage.py runserver
-
Open your web browser and visit
http://localhost:8000
to see the application in action.
If you want to contribute to this project, follow these steps:
- Fork the project.
- Create a new branch (
git checkout -b feature/new-feature
). - Make your changes and commit them (
git commit -am 'Add a new feature'
). - Push to the branch (
git push origin feature/new-feature
). - Create a pull request.