This is a small Django project to demonstrate Django CRUD functionality. The main app is an API created using Django Rest Framework.
π Live API
Codeleap is deployed using Docker Compose. Edit the script to configure the environment variables to fit your requirements.
# clone repository
git clone https://github.com/viniciosbarretos/codeleap.git
# change directory to repo
cd codeleap
# start the container using the docker-compose command
sudo docker-compose up
To access the application go to the URL defined at docker-compose.yml. The default URL is http://localhost:80/
// request body
{
"username": "@Sample User",
"title": "Lorem Ipsum",
"content": "Dolor Sit Amet"
}
// request body
{
"title": "Lorem Ipsum",
"content": "Dolor Sit Amet"
}
// request body
{}
- All usernames should start with @
- Once set, you can't change username
- You can't set/change object ID and creation datetime
By default, all cors requests are blocked, except from https://dev.codeleap.co.uk/
.
docker-compose run app-django python manage.py test
- SSL / certbot (domain name needed)
- API results pagination
- If this were implemented, the front end would not work correctly. I followed documentation guidelines.
π€ Vinicios Barretos
- Github: @viniciosbarretos
- LinkedIn: @vinicios-barretos
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a βοΈ if this project helped you!
Copyright Β© 2020 Vinicios Barretos.
This project is [MIT] licensed.
_This README was generated with β€οΈ by readme-md-generator