This project is a backend Api build with Rails for my project Weddingvenue that will allow user to sign in and explor weddinvenues avariable and apply for it.
- sign in/up
- see wedding venues
- add venues to your favourite
- Ruby v2.7.1
- Ruby on Rails v6.0.2
(you can test it with an Api client like Postman) click here
To get a local copy up and running follow these simple example steps.
Ruby: 2.7.1
Rails: 6.0.2
Postgres: >=9.5
an API client like postman
$ git clone https://github.com/rida-elbahtouri/WeddingVenues.git
$ cd WeddingVenues
Instal gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
Start server with:
rails server
Base URL : https://mighty-headland-70407.herokuapp.com
Post your username with the param username To: BaseUrl/users
- it will return the User Token (that change after each login)
Post your username with the param username and password with param password To: BaseUrl/logs
- it will return the User token
send a header of
- Authorization:token
Post the the weddingvenue_id to BaseUrl/favourites
- it will return "we added to your favourites"
Get BaseUrl/weddingvenues
- it will return all the weddingvenue
Get BaseUrl/weddingvenues/:id
- it will return a details about selected venue
Run this command
rspec
👤 Rida Elbahtouri
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!