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. The API will be used for user authentication and CRUD operation. This API is currently deployed here. Please feel free to contribute to this project.
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
# install dependencies mentioned in Gemfile
$ bundle install
# verification of already installed files in node_modules
$ yarn install --check-files
Create and Initialize database.
# migration of database
$ rails db:migrate
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.
$ 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 for view.