Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tresor11/cafe-react-api

A rails API serving as a backend to a cafe-menu react app.
https://github.com/tresor11/cafe-react-api

heroku rails-api

Last synced: about 1 month ago
JSON representation

A rails API serving as a backend to a cafe-menu react app.

Awesome Lists containing this project

README

        

# Cafe-React API

> This project is an Api for this [React-app](https://resell-app.netlify.app/).

This API is made of one model called Item

The API has the following endpoints

`GET /items`

returns all the items

`POST /items`

allows user to create an item

`GET /items/id`

returns a specific item

`PUT /items/id`

allows user to edit an item

`DELETE /items/id`

allows admin to delete an item

## Built With

- Rails
- Ruby
- Heroku

## Getting Started

Here are the steps to follow in order to get this project on your local computer.

### Prerequisites

`rails v6.0.3 +`

`ruby v2.7.1 +`

### Setup

clone this repo by typing `git clone https://github.com/Tresor11/cafe-react-api.git`

### Install

install the dependencies by typing `bundle install`

### Usage

start the local server by running `rails s`

### Testing

run the tests by typing `bundle exec rspec`

### Deployment

this project is deployed on heroku

## Author

👤 **Tresor bireke**

- Github: [@Tresor11](https://github.com/Tresor11)
- Twitter: [@Tbireke](https://twitter.com/Tbireke)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the [issues page](issues/).

## 📝 License

This project is [MIT](lic.url) licensed.