Skip to content

mohamedayman28/gym_management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Gym Management

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

Ajax (htmx) example

htmx example

Setting up locally

Need to have Python 3.6 or higher installed. Then download the repository with the next steps.

1. Create development directory

mkdir gym_management
cd gym_management

2. Create virtualenv

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

3. Activate virtualenv

source env/bin/activate

4. Clone the repository

git init
git clone https://github.com/mohamedayman28/gym_management

5. Install required packages

cd gym_management
pip install -r requirements.txt

6. Migrate

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

7. Run the app

python manage.py runserver

Releases

No releases published

Packages

No packages published