Skip to content

API Server to manage student life @ Penn.

License

Notifications You must be signed in to change notification settings

jonrxu/penn-mobile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

penn-mobile

Build and Deploy Coverage Status

This repository is the Django-based successor to labs-api-server, containing API routes to help students manage and keep track of things around campus that matter to them. This repo contains:

  • GSR Booking
  • Laundry Data
  • Dining Data
  • Fitness Data
  • News and Events
  • Posts and Polls
  • Notifications

Install

  • git clone https://github.com/pennlabs/penn-mobile.git
  • cd penn-mobile/backend
  • brew install postgres
  • pipenv install --dev --python 3.9

Note that the above command will likely throw some ugly errors at you with regards to the psycopg2 packages. If that is the case, just manually install them:

  • pipenv install psycopg2
  • pipenv install --dev

Final Steps:

  • pipenv run python manage.py migrate
  • pipenv run python manage.py runserver 8000

Creating Users

To create users, you first have to create a main superuser.

  • pipenv run python manage.py createsuperuser and follow the instructions
  • Then, you can go to localhost:8000/admin/auth/user/add/ to add more users.

Testing Delayed Notifications

  • brew install redis

In separate terminal windows, run the following commands:

  • redis-server
  • celery -A pennmobile worker -linfo

Exploring the API

About

API Server to manage student life @ Penn.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.0%
  • HTML 28.6%
  • TypeScript 19.7%
  • Other 0.7%