Giter Site home page Giter Site logo

dbms's Introduction

Classroom Management System

Team Info

Naman Manish Trivedi (181CO156)
K V Sumanth Reddy (181CO225)

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)

dbms's People

Contributors

namanmanish avatar sumanthreddy07 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.