Giter VIP home page Giter VIP logo

course-manager's Introduction

course-manager api

create a venv ativate it then install the requirements

python -m venv myenv

source myenv/bin/activate

pip install -r requirements.txt

then in the working directory run this command to run the uvicorn server

foreman start

finally go to the following link to test the api

http://localhost:5000/docs

to populate the database with some sample data run populate.py

python populate.py

if you want to view what was populated in the db run test_queries.py

python test_queries.py

Testing variables

  • student_id 1 is on 3 waitlists (class_id: 8, 4, 13)
  • class_id 2 (with instructor_id 2) has 4 dropped students
  • class_id 4, 6, 8, 13, 14 are all full, but have open waitlists
  • class_id 12 is fully enrolled, with a full waitlist
  • all classes have a default max_enroll value of 30
  • there are 500 student_ids, with upwards of 300 of them currently being used
  • there are 100 instructor_ids, with only ~14 of them being used

windows execution policy

  • if you are running this on a windows machine you may have to set the execution policy to run your virutal enviroment

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

course-manager's People

Contributors

kolemor avatar anguzz avatar cesar-gz 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.