Skip to content

abel-castro/abelcastro.dev

Repository files navigation

abelcastro.dev

Source code of abelcastro.dev.

Built with Django and created with DDST.

My goal was to create a simple solution for blogging without using a CMS. This blog only uses django core functionalities and the great Markdown editor martor.

API

This project provides a REST-API for accessing the blog and sports-dashboard data. See the documentation here: https://abelcastro.dev/api/docs/ (swagger-ui) or https://abelcastro.dev/api/docs/redoc/ (redoc)

Graphql

A graphql api that also provides blog and sports-dashboard data is also available. See /grapqhl for more details.

Development

  • Create a .env file from the template env_template_dev with the desired values.

  • Build the development image: docker-compose build

  • Run docker-compose up and go to http://0.0.0.0:8000 to see your runserver.

Other commands

  • Pytest
docker-compose run --rm django pytest
  • Run black
docker-compose run --rm django black .
  • Manual get data from API-Football standings
docker-compose run --rm django /app/manage.py import_league_standings

Credits

About

Source code of my django APIs.

Topics

Resources

License

Stars

Watchers

Forks

Languages