Giter VIP home page Giter VIP logo

djangogym's Introduction

About

Welcome to DjangoGym! After learning the fundamentals of Django - Views, URL Patterns, Admin Panel, Templates, Authentication, Django Signals, Class Based Views - I'm now putting it all together with a little project to create a gym web app. In this project I will use these skills I've learnt as well as explore new features such as many-to-many relationships, the use of the is_staff column in the User model, and much more. I have designed this app with a lot of features, buttons and routes, this is because I want to give myself the chance to practice and learn through a good amount of repetition of simply getting things done in Django. Below is the schema I have designed for this project.

CachingProcess

Key Technologies

  • Backend: Python, Django, PostgreSQL
  • Frontend: JavaScript, SortableJS, Bootstrap, CSS, HTML
  • Deployment: Docker

Peek at the Pages

Have a quick look at the pages on the website. These screenshots have been taken while logged in as a staff member, meaning all the buttons to add, edit and delete content are present.

Homepage

CachingProcess

Reordering the Homepage Images

CachingProcess

Classes Page

CachingProcess

Schedule Page (Of a Specific Class (Kickboxing))

CachingProcess

Page to Schedule a New Class

CachingProcess

Staff/Instructors Page

CachingProcess

Public Instructor Profile

CachingProcess

Clients Page

CachingProcess

Page to Add a New Client

CachingProcess

Private User Profile

CachingProcess

Installation & Setup

Run the following command to clone the repo:

git clone https://github.com/shakey0/DjangoGym
cd DjangoGym

Create your virtual environment:

pipenv install
pipenv shell

Install dependencies:

pip install -r requirements.txt

Run the following commands to create the dev database: (If you haven't, install and setup PostgreSQL on your machine.)

createdb DjangoGymData
python manage.py migrate

Create a superuser with the username Andrew (remember the capital A):

python manage.py createsuperuser
# Username: Andrew
# Email address: [email protected]
# Password: <YOUR_CHOICE>

Seed the dev database:

python manage.py seed_db

Start the server:

python manage.py runserver

Go to http://localhost:8000/ and log in with the superuser you created! Enjoy!

djangogym's People

Contributors

shakey0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.