Django + htmx(Ajax library) CRUD app that covers:
- CBV.
- TDD for the CBV.
- Ajax calls.
- API using DRF. Yet to finish
- TDD for the API. Yet to finish
- Search mechanism. Yet to finish
Need to have Python 3.6 or higher installed. Then download the repository with the next steps.
mkdir gym_management
cd gym_management
Note: You may want to change the Python version, I'm also using Linux Ubuntu-based OS, so depending on your OS you may use different commands for creating a python virtual environment.
sudo apt-get install python3-pip
sudo apt-get install python3.6-venv
python3.6 -m venv env
source env/bin/activate
git init
git clone https://github.com/mohamedayman28/gym_management
cd gym_management
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
If the migrations doesn't apply to all apps, you may need to migrate each app individually
python manage.py makemigrations gym
python manage.py migrate gym
python manage.py runserver