An API for the next plattform of Buen Conejo!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
It is a project to congregate rabbit farmers, trading rabbits, meat, and other derivate products, and finally share statistics with the community, industry, and government.
In this project the objetives are:
- Create a local database with PostgreSQL through Django ORM
- Use JWT with custom user model
- Login with username, email and password
- Send email for activate users
- Create the REST API for CRUD operations through Django Rest Framework
- Use Swagger for document the REST API
- Upload photos for profiles, cages, farms and rabbbits in Cloudinary service
- Use docker containers and docker compose
This project use a postgreSQL database and docker container in local mode and production.
- Clone the repository
git clone git@github.com:el-buen-conejo/elbuenconejo-backend.git
- In local mode install docker and docker compose
- Create a .env file with the environment variables of the .env.example file
- Execute the next command with docker compose
docker compose up -d
In the next link can you use the API, the indications are: For endpoints of methods different from GET
- Create an user with the endpoint: /api/auth/register/ of swagger ui url
- Copy access token
- Click in authorized button
- Paste acces token in value field
- Click in Authorize button
- Click in close button
- Can you use the API
- Logout in authorize button
For endpoints of methods GET only excute the endpoint in swagger ui url
For more examples, please refer to the Documentation
- [ X ] Add CI/CD with Github Actions
- [ X ] Terminate swagger documentation
- [ ] Add versioning control
- [ X ] Deploy in Railway
See the open issues for a full list of proposed features (and known issues).
Distributed under the GPL-3.0 License. See LICENSE
for more information.
Miguel Angel López Monroy - @miguellopezmdev - miguel.lopezm.dev@gmail.com
Project Link: https://elbuenconejo-backend-production.up.railway.app/api/schema/swagger-ui/
My favorite resources used: