Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/iak97/rails_todo_api

A todo api using ruby on rails with rspec
https://github.com/iak97/rails_todo_api

rails rails-api rails-application rails7 rspec rspec-rails rspec-testing ruby ruby-app ruby-on-rails

Last synced: 1 day ago
JSON representation

A todo api using ruby on rails with rspec

Awesome Lists containing this project

README

        

# Rails Todo API

This is a Rails API only application using TDD RSpec Testing and included SimpleCov gem for code coverage. It allows users to add and manage their todos 📝.

## Prerequisites

Before cloning this repository, please ensure that you have the following installed on your local machine:

- Ruby 💎 > 3
- Rails 🛤️ > 7

## Installation ⏬

To get started with the project, follow these steps:

## 1. Clone the repository 📂:

```bash
git clone [email protected]:iak97/rails_todo_api.git
```

## 2. Change into the project directory ↪️ :

```bash
cd rails_todo_api
```

## 3. Install the required gems 🔮:

```bash
bundle install
```

## 4. Edit `config/database.yml` file with your db credentials 💾.

## 5. Create the database and run the migrations 🏃:

```bash
rails db:create db:migrate
```

## 6. Start the Rails server 🚀:

```bash
rails s
```

## 7. To run specs 💡:

```bash
rspec
```

## 8. Access the API in your Postman 🌐 at [http://localhost:3000](http://localhost:3000).

## Note

If you encounter any issues please let me know. Give me a 🌟 if you like this project!!!