Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kishan-aghera/todo-list-backend
This is part of a demo app using React as frontend and Rails API as backend.
https://github.com/kishan-aghera/todo-list-backend
rails-api-backend
Last synced: 1 day ago
JSON representation
This is part of a demo app using React as frontend and Rails API as backend.
- Host: GitHub
- URL: https://github.com/kishan-aghera/todo-list-backend
- Owner: kishan-aghera
- Created: 2021-06-17T13:14:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-30T12:11:19.000Z (over 2 years ago)
- Last Synced: 2023-03-10T09:16:47.642Z (over 1 year ago)
- Topics: rails-api-backend
- Language: Ruby
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To-Do List Rails API Backend
This project is part of a mini-project assigned to learn React + Rails. This project works as an API for the React frontend project in the repository [here](https://github.com/kishan-aghera/todo-list-frontend). The API will be used for user authentication and CRUD operation. This API is currently deployed [here](https://todo-list-rails-api.herokuapp.com/). Please feel free to contribute to this project.
### Project Configuration
This repository uses Ruby 2.7.2, so make sure to have 2.7.2 version installed.
Run the following commands to install necessary dependencies
```bash
# install dependencies mentioned in Gemfile
$ bundle install# verification of already installed files in node_modules
$ yarn install --check-files
```### Database Setup
Create and Initialize database.
```bash
# migration of database
$ rails db:migrate
```### Starting the server
To start the server on localhost run the command below. The server will start on port 3001 as the frontend app will use port 3000.
```bash
$ rails s
```*Note*: The server for this app will not generate any view as it works as an API. You need to clone and use this [app](https://kishan-aghera.github.io/todo-list-frontend/) for view.