/short-let-api

This project is the backend service provider for the Short Let application, which helps the frontend to register, and login using JWT. It also provides many API endpoints to read, write, update, and delete data from all parts of the project. We built a simple and useful documentation for this project so the community can have an idea how to use this.

Primary LanguageRuby

Short Let API

This project is the backend service provider for the Short Let application, which helps the frontend to register, and login using JWT. It also provides many API endpoints to read, write, update, and delete data from all parts of the project. We built a simple and useful documentation for this project so the community can have an idea how to use this.

Here is a link to the frontend application repository.

This application was built as a group project in less then 3 weeks.

Kanban board

Here is the Kanban Board we planed to work on at the begining of this project.

Built With

  • Ruby on Rails
  • PostgresSQL
  • Rspec
  • And some other open source ruby gems

Live Demo

Look at the live demo

Getting Started

Make sure you installed Ruby and PostgresSQL in your machine. Please follow the setup steps in order.

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

  1. Open your favorite command line tool, and run the bellow commands.
  2. Run git clone git@github.com:ichala/short-let-api.git
  3. Run cd short-let-api
  4. Run bundle install
  5. Run cp .env.example .env
  6. Update the .env file with proper database credentials
  7. Run openssl rand -base64 32
  8. Now copy the generated key from you terminal and use it in your .env file for JWT_KEY
  9. Run rails db:create
  10. Run rails db:migrate

Usage

Run tests

The tests are built with Rspec so you can run the rspec . command to run all of the tests.

Authors

👤 Aimal Amiri

👤 Eid Hachem

👤 Ali Jendoubi

👤 Lekan Jimoh

👤 David Lyangenda

🤝 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!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.