Skip to content

My first ever coding project! This web app is for admin use at a gym to manage classes, members and instructors using RESTful routes and an SQL database

Notifications You must be signed in to change notification settings

HelenLangers/CC_Gym_App_Project

Repository files navigation

Active Gym Admin App Project

This project is my first one ever. It was created four weeks into the 16 week CodeClan Software Developer Bootcamp.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contact
  4. Acknowledgments

About The Project

After four weeks of intensive learning when, on day one, it was assumed we hadn't done any coding before, it was time for our first full stack project.

We were given a choice of briefs which varied in complexity of database relationships (ie either a one-to-many or a many-to-many relationship). I ended up adding an extra table, so this app utilises both the many-to-many and a one-to-many relationship.

Here's the brief:

A local gym has asked you to build a piece of software to help them to manage memberships, and register members for classes. MVP

  • The app should allow the gym to create and edit Members
  • The app should allow the gym to create and edit Classes
  • The app should allow the gym to book members on specific classes
  • The app should show a list of all upcoming classes
  • The app should show all members that are booked in for a particular class

Extensions That I Added:

  • Classes could have a maximum capacity, and users can only be added while there is space remaining.
  • Users cannot be added twice to one class
  • The app has Instructors who can be assigned to a class

(back to top)

Built With

  • HTML
  • CSS
  • Python
  • Flask
  • Postgresql

(back to top)

Getting Started

Prerequisites

To run this app, you must have:

  • psychopg

    pip3 install psycopg2
  • Flask

    pip3 install Flask
  • Postgresql

Installation

  1. Clone the repo
    git clone https://github.com/HelenLangers/CC_Gym_App_Project.git
  2. Navigate via Terminal to the folder
  3. Create the database
psql -d gym_app -f db/gym_app.sql
  1. Populate the database with pre-set objects
python3 console.py
  1. Run Flask
flask run
  1. Open in Chrome: http://127.0.0.1:4999
  2. To stop the server enter ctrl + c in your Terminal

(back to top)

Contact

Helen Langridge - Twitter - LinkedIn

Project Link: https://github.com/HelenLangers/CC_Gym_App_Project

(back to top)

Acknowledgments

(back to top)

About

My first ever coding project! This web app is for admin use at a gym to manage classes, members and instructors using RESTful routes and an SQL database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published