Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.