/mentor_me_now_back_end

An app to book an mentor's appointment.

Primary LanguageRubyMIT LicenseMIT

MENTOR ME NOW APP

MentorMeNow logo


Table of Contents

About Project

The MentorMeNow Backend app is a Rails API that fetches Users, Mentors & Reservations from a PostgreSQL database, demonstrating basic Rails API development. For a practical application, the MentorMeNow app consumes this API to display mentors, showcasing a full-stack integration with React, Vite, and TailwindCSS.

See the MentorMeNow app in action here.


Built With

  • Ruby on Rails
  • PostgreSQL

Tech Stack

  • Ruby version: 3.2.2
  • Rails version: Specify your Rails version
  • Database: PostgreSQL

Key Features

  • API endpoint to fetch Users, Mentors & Reservations
  • PostgreSQL database integration
  • Simple and clean codebase focusing on RESTful API design

Getting Started

Prerequisites

  • Ruby 3.2.2
  • Rails 7.1
  • PostgreSQL

Setup

  1. Clone this repository
git clone https://github.com/Ayokunnumi1/mentor_me_now_back_end.git
cd mentor_me_now_back_end
  1. Check your Ruby version
ruby -v
  1. Install dependencies
bundle install
  1. Update your database informations Go to config/database.yml. Replace your_postgres_username and your_postgres_password with your database informations
      default: &default
      adapter: postgresql
      encoding: unicode
      pool: 5
      username: [your_postgres_username]
      password: [your_postgres_password]
      host: localhost
    
    development:
      <<: *default
      database: [your_database_for_development]
    
    test:
      <<: *default
      database: [your_database_for_test]
    
    production:
      <<: *default
      database: [your_database_for_production]

Install

Populate data in the database by running the following commands:

rails db:create
rails db:migrate
rails db:seed

Usage

To start the server, run:

rails s

Navigate to http://localhost:3000/api-docs/ to see the API in action, returning diverse requests.

Tests

To run the test suite, execute the following commands:

rails db:migrate RAILS_ENV=test
rspec

Kanban Board

Authors

Future Features

  • Extend the API to include Admin requests
  • Implement other operations (e.g., update user profile or cancel a reservation)

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if this project helped you!

Acknowledgements

  • Microverse
  • Ruby on Rails Community
  • PostgreSQL Documentation

License

This project is MIT licensed.

(back to top)