Skip to content

902Youth/CU-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CU-Backend

Flask RESTful API for the Creative Unison app.

Getting Started

Note

If you have any issues starting up the project with the steps below, open up a ticket in the #tickets channel in the Discord.

  • Make sure you have Python installed (View Python Installation)

  • Clone the repo

git clone https://github.com/902Youth/CU-Backend.git
  • Navigate to the root directory
cd ./CU-Backend
  • Create a virtual environment
python -m venv venv
  • Activate a virtual environment (view the Python Docs if you have issues)

Mac/Linux: source venv/bin/activate Windows: venv\Scripts\activate.bat

  • Install dependencies
pip install -r requirements.txt
  • Create .env file in the root of the project

  • Put database connection string in .env (View #resources channel in the Discord)

DATABASE_URL=mysql+pymysql://root:<password>!@<host>/<database_name>
  • Run the development server
python ./app/App.py

Thats it! You can now use/test the Flask API.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors