Skip to content

sumanthreddy07/Classroom_Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classroom Management System

Team Info

Install components

sudo apt-get update
sudo apt-get install python-pip 

Setting up Virtual Environment and Install Requirements

sudo pip install virtualenv
python3 -m venv myvenv
source myvenv/bin/activate
pip install -r requirements.txt

Running the server

cd roombooking
python manage.py runserver
In your web browser go to localhost:8000/user/sign_up

Running the tests

cd roombooking
python manage.py test book

Faculty scenarios

  • A new user can signup and if already a user he/she can login
  • Any authanticated user can create a new room booking
  • User can view his past bookings and can edit or delete the bookings which are not yet done

Manager scenarios

  • A new user can signup as a manager and if already a user he/she can login
  • Any authenticated manager can view all the room bookings, details of the customers and the vacancy status of all the room
  • Manager can create new time slots and define the maximum days for an advance booking
  • Manager can add a new room
  • Manager can delete or edit time slots but the changes to be done only after 'n' days here 'n' is the maximum days for an advance booking
  • Manager can edit or delete the time slots only once a day
  • These restictions are allpied by keeping in mind the bookings which are already created when these time slots existed
  • Due to this different dates may have different time slots
  • Faculty, while creating a new booking will choose the date and the time slot will dynamically loaded on the basis of the date chosen

API

Have created API for creating a new time slot
url : 'book/api'
GET
responsedataformat : json
data : Array of dictionaries containing all the time slots
POST
requestdataformat : json (as raw data in body of request)
sample : {"int_time":some_value,"end_time":some_value}
responsedataformat : json (the object which is created)

About

A Database Management project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published