Skip to content

PhillipUg/microverse-jobs-api

Repository files navigation

Microverse Jobs API

A RESTFUL API built with Ruby on Rails. Its uses BCrypt and JWT gems to implement Authentication & Authorization. It performs CRUD operations on the various resources it serves.


microverse-jobs-api

Microverse Jobs API

Report Bug · Request Feature

About this project

This API is built as the back end for a mobile web application (Microverse Jobs) built with React on the front end and is separately deployed to Netlify.

End Points

There are a couple of endpoints exposed by this api and can be accessed online using https://microverse-jobs-api.herokuapp.com/ as the base Url.

POST

  • /api/v1/users - (create user account)
  • /api/v1/login - (create session)
  • /api/v1/jobs - (create job)

GET

  • /api/v1/users - (fetch all users)
  • /api/v1/favorites - (fetch all favorites)
  • /api/v1/user-jobs - (fetch all logged in user's favorited jobs)
  • /api/v1/jobs - (fetch all jobs)
  • /api/v1/jobs/:id - (fetch all particular job)

PUT

  • /api/v1/favorites/:id - (update favorited status when user adds/removes job to/from favorites)
  • /api/v1/jobs/:id - (edit jobs)

DELETE

  • DELETE /api/v1/jobs/:id - (delete job)

Built With

  • Ruby on Rails
  • BCrypt gem
  • JWT gem
  • Postgresql
  • Heroku

Live Demo

For the full working application Click here

Installation

To get a local copy up and running follow these simple example steps.

Setup

Clone this repo

Usage - Follow these

  1. cd into the project directory
  2. run bundle install
  3. run rails db:migrate
  4. run rails s
  5. Navigate to localhost:3000.
  6. And we are live... 😃

👤 Contacts

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.