vic3king / tix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tix

Is an api built for a ticketing application similar to tix.africa

This project is built on AdonisJs AdonisJs is a Node.js web framework with a breath of fresh air and drizzle of elegant syntax on top of it. We prefer developer joy and stability over anything else..

Setup

- git clone https://github.com/vic3king/tix.git
- cd tix && npn install
- create a .env file usiong details provided in the .env.example 
- after that run npm run db:refresh to run migrate and npm run seed 
- npm run start:dev to launch development server and access endpoints to e.g [localhost:3000/v1](http://127.0.0.1:3000)

Hosted api can be found here

API Endpoints

Request End Point Action
POST / Welcome screen
POST /v1/auth/login/ Login a user
POST /v1/auth/register/ Register a user
POST /v1/events/event/ Create a new event
GET /v1/events Get all events
GET /v1/events/:eventId Get one event and associated tickets
PATCH /v1/events/:eventId Update properties of an event
DELETE /v1/events/:eventId Delete an event and associated tickets
PATCH /v1/tickets/:eventId Create a ticket for an event

Entity Realtionship diagram

enentity relationship diagram

Authors

  • Akaniru victory - Initial work - Vic3king

About


Languages

Language:JavaScript 97.3%Language:CSS 2.7%