Coder Social home page Coder Social logo

game-park-reservations-api's Introduction

GAME SAFARIS RESERVATIONS API

Game Safaris Reservations is A RESTFUL API built with Ruby on Rails. It makes use of JWT to implement Authentication and Authorization features. This is a full stack application, where users can access a list of Game Safaries activities from which they can choose an activity and make a reservation. The application can be accessed using the front end feature Game Safaris Reservations built using React and Redux.

Home page of a logged in user.

Built With

  • ruby 3.0.1
  • Rails 6.1.4
  • Postgres 13.3
  • RSpec-rails

Live Demo

Game Safaris Reservations

API END POINTS

Base URL: {HOST-URL}/api/v1

Below is a list of the end points and their respective use.

END POINT                       USE
POST/register                   Sign up
POST/sign_in                    Sign in
GET/users                       List all users
GET/users/:id                   Show a user
DELETE/users/:id                Update a user
PATCH/users/:id                 Update a user
GET/activities                  List all activities
POST/activities                 Create activity
GET/activities/:id              Show a single activity
PATCH/activities/:id            Update activity
DELETE/activities/:id           Delete activity
GET/reservations                List all reservations
PATCH/reservations/:id          Update a reservation
DELETE/reservations/:id         Delete a reservation

Getting Started

Prerequisites

  • ruby 3.0.1
  • Rails 6.1.4
  • Postgres >=13.3

Clone the repo:

$ git clone https://github.com/gango-anan/game-park-reservations-api.git

Setup

Install the needed gems with:

bundle install

Setup database with:

   rails db:create
   rails db:migrate
   rails db:seed

Run tests

Finally, run the test suite to verify that everything is working correctly with:

    rspec

Usage

If the test suite passes, you'll be ready to run the app in a local server.

Start server with:

    rails server

In your browser, type:

    http://localhost:3000

Author

GALIWANGO ANANIYA

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

๐Ÿ“ License

This project is MIT licensed.

game-park-reservations-api's People

Contributors

gango-anan avatar

Stargazers

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