arpad1337 / hackathon_backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Us to You app {Backend}

Step 1: Make sure you have PYTHON 3 installed

To check, use python3 -v If installed, proceed to step 2. If not, look up the docs. lol.

Step 2 Make sure Pip is installed

(It's like npm/yarn except for python.)

Run this code in your CLI of choice:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

...and after, run this:

python get-pip.py

It should automatically upgrade you to pip3

Step 3 Create a Python Virtual env

python3 -m venv venv

Then activate it:

source venv/bin/activate

Step 4 Get Django

python3 -m pip3 install Django
pip3 install djangorestframework

If this is your first time running this app:

Run this:

python3 manage.py migrate

This will init the SQLite Database.

Step 5 Paste this into your CLI:

python3 manage.py runserver

Finally, check localhost:8000/admin

You should be able to login. Credentials are in the Discord dev chat.

If any errors pop up

Post a screenshot or code snippet of the entire error into the Slack or Discord channel and tag Cat.

Looking for the Frontend?

Go here lol.

TODO:

  • Create CRUD functionality
  • Connect to AWS Lambda
  • Connect to frontend (look up axios for React)
  • Create dummy data sellers in DB
  • Create test users via frontend

About


Languages

Language:Python 99.0%Language:JavaScript 1.0%Language:HTML 0.0%