Skip to content

A multitenant model of a simple RESTful API for managing calendar events and conference room availability for Tango Limited

Notifications You must be signed in to change notification settings

NerdPraise/Tango_Multitenancy_event_webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tango_Multitenancy_event_webapp

A multitenant model of a simple RESTful API for managing calendar events and conference room availability for Tango Limited

Requirements :

python == 3.9.1
Django >= 3.0.0

API References

Usage

  1. Clone project
  2. Create .env file and add a key value pair with the key DJANGO_SECRET_KEY DJANGO_SECRET_KEY="soome value"
  3. Run python -m venv venv to create a virtual environment
  4. Run pip install -r requirements.txt to install all the necessary required packages
  5. Run python manage.py runserver to start server and follow code snippet

Test

cd into root directory and run python manage.py test tests.unit.test_<feature>

valid_event_data = {
        "user": "1",
        "event_name": "Management",
        "meeting_agenda": "Info about work",
        "start_time": "2018-06-29 08:16",
        "end_time": "2018-06-29 08:19",
        "participants": [
            "[email protected]"],
    }

valid_conference_data = {
    "name": "Room A",
    "address": "Some place"
}
NB: This project was made with some assumptions in mind
  1. Once a room is booked, it can't be booked again, this is to avoid implementing additional business requirements that aren't required
  2. Tenancy system adopted is a shared schema, shared database system
  3. The endpoints are user timezone-aware but not the admin dashboard
  4. The concept of company tenancy is made abstract to user
  5. No user management api
  6. Choice of time zones is restricted to common time zone
  7. Populatin a user's timezone would be doone by the administrator

About

A multitenant model of a simple RESTful API for managing calendar events and conference room availability for Tango Limited

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages