Giter VIP home page Giter VIP logo

tzaker's Introduction

Tzaker

txaker is a backend for creating and handling concerts and booking. It was created using Ruby on Rails and provides a back-end API for managing companies, concerts, singers, tikits, users, and venues.

Installation

In order to run this project you need:

1- ruby 2- rails 3- postgresql 4- capybara

Setup

Clone this repository to your desired folder:

1- ruby v 3.1.3 2- rails

Install

Install this project with:

Usage

To run the project, execute the following command:

1 - bundle install

2 - rails db:create db:migrate

3 - rails s

4 -user "http://localhost:3000/" to comunicate with the server

here are the end-points

Endpoint Method Description ex
/users/signup POST Create a user and get a token { "user": { "name": "user", "email": "[email protected]", "password": "123456789", "name": "mohamed eldeeb", "img_url": "ex.png" }}
/users/login POST Give the email and password will login and return the user token { "user": { "name": "user", "email": "[email protected]", "password": "123456789" }}
/users/logout DELETE Change the user token in database {"user": {"name": "user","email": "[email protected]","password": "123456789",}}
/companies/signup POST Create a company and get a token {"company": {"name": "company","email":[email protected]","password": "123456789""name": "mohamed eldeeb","img_url": "ex.png","location":cairo","bio": "the best"}}
/companies/login POST Give the email and password will login and return the company token {"company": {"email": "[email protected]","password": "123456789"}}
/companies/logout DELETE Change the compnay token in database {"company": {"email": "[email protected]","password": "123456789"}}
/singers/signup POST Create a singer and get a token {"singer": {"name": "singer","email": "[email protected]","password": "123456789", "name": "ali", "img_url": "ex.png", "music_genre": "rap", "bio": "the best"}}
/singers/login POST Give the email and password will login and return the singer token {"singer": {"name": "singer","email": "[email protected]","password": "123456789"}}
/singers/logout DELETE Change the compnay token in database {"singer": {"name": "singer","email": "[email protected]","password": "123456789"}}
/venues POST Create a venue NOTE: the company token must be included {"venue": {"platinum_seats_count": 1,"gold_seats_count": 1,"silver_seats_count": 1,"location": "cairo", "location": "cairo"}}
/concerts POST Create the concert but NOTE: if the compnay key is included the status of the concert will be "pinded_by company" till the user accept or reject and vice versa. {"concert": {"company_id": 1,"venue_id":,"silver_seats_price": 1,"gold_seats_price": 1,"platinum_seats_price": 1,"location": "cairo", date: "23-4"}}
/concerts PATCH This is for changing the status of the concert to "accepted" of "rejected" as mentioned. {"concert": "status": "approved"}
/concerts/:id DELETE Deletes the concert with the titkets NOTE: aither the singer token or the company token must be there
/tikits POST This is for creating a tiket NOTE: the user token must be inclouded {"tikit": {"concert_id": 1, "seat_type": "gold"}}
/tikits/:id DELETE This is for destoring a tiket NOTE: the user token must be inclouded
/concerts/:id/tikits GET This gets all tikets for a single concert NOTE: aither the singer token or the company token must be there
/concerts/:id/tikits_count GET This gets all tikets count for a single concert NOTE: aither the singer token or the company token must be there
/concerts/:id/tikits_price GET This gets all tikets count for a single concert NOTE: aither the singer token or the company token must be there

yes!! there is a typing error.

I used tikit instead of tiket

👥 Authors

👤 Mohamed El-Deeb

⭐️ Show your support

tzaker's People

Contributors

eng-mohamed-eldeeb 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.