Skip to content

sidlinux22/eventapp-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eventapp API v1

API Requirements and Goals

Functional Requirements:

  • The tool should be submitted with a pre-defined events in the data store. Events should have the following fields identified:
  • An event will have a name
  • An event will have a location
  • An event will have a start and end time
  • An event will have a unique identifier
  • The tool should accept an email address as a unique identification for a user (when signing up for an event)
  • The tool should allow the user to
  • List all events
  • Sign up for an event
  • Remove email address from event
  • When signing up for an event the tool should email a pre-defined email address with a notification.
  • All properties (i.e. the pre-defined email address) should be easy to change before deployment.
  • All event times will be in the same timezone.
  • An event can span multiple days.

API Documentations

Postman API documentaion here : https://documenter.getpostman.com/view/9898598/SWLZfAV5?version=latest#9312a3c6-8ae9-4bf3-b1cc-d44db9673274

API endpoints

Database Design

DB Design

ref : https://flask-sqlalchemy.palletsprojects.com/en/2.x/models/

Setup locally


  1. clone repository (git clone https://github.com/sidlinux22/eventapp-api.git),
  2. install virtualenv,
  3. cd path/to/repo,
  4. virtualenv venv,
  5. . venv/bin/activate,
  pip3 install Flask-SQLAlchemy
  pip3 install flask_jwt
  pip3 install flask_restful
  pip3 install flask_mail
  1. python app.py
  2. in your favourite web browser localhost:5000

Test

  1. Install Postman https://www.getpostman.com/downloads/

  2. Import Request Collection from repository postman directory

  3. Collection Runner Test

Postman

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages