Restaurants App are awesome application made with Ruby on Rails for desktops and mobile devices. The user can see the list of nearby restaurants and search the list of guests and find friends.The user can see the restaurant's location and address on Google Maps, even can get address of restaurant. Then user can reserve a certain table in the restaurant. If a table is already reserved, the user cannot reserve the same table. When making a reservation, the user can invite friends. Emails are sent to friends and to restaurant where table is reserved. User friends receive an invitation and can accept or decline. If they accept it, they can rate the restaurant after visiting the restaurant. Admin can add managers. Managers can create a restaurant, add location, meals and table configuration.
You will be needing:
-
A terminal terminal
-
A code editor
-
Ruby (follow the instructions based on your OS)
https://www.ruby-lang.org/en/documentation/installation/
-
Rails (follow the instructions based on your OS)
https://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project-installing-rails
-
Postgresql (follow the instructions based on your OS)
https://www.postgresql.org/download/
-
The postgres installation doesn't setup a user for you, so you'll need to follow these steps to create a user with permission to create databases. You can skip this if this is not your first time using PostgreSQL
sudo -u postgres createuser <Username>
git clone https://github.com/VuDej/restaurants-app.gitcd hospitalInstall gems with:
bundle installSetup the database with:
rails db:createrake db:createrubocop .In auto-correct mode, RuboCop linters offenses will be automatically fixed:
For rubocop:
rubocop -Arubocop --auto-correct-allStart server with:
rails srails server -p 3000This will start a server at:
localhost:3000You can paste or type it on url bar
Make sure you have installed gems with:
bundle installThen run all the tests with:
rspec spec- Set up the repository/repositories on GitHub and use Gitflow.
- Set up Postgres for the database
- Create models, controllers and views
- Create unit tests
- Create README
| Languages | ||
|---|---|---|
Contributions, issues, and feature requests are greatly appreciated!
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "improvements".
- Fork the Project
- Create your Feature Branch (git checkout -b feature/yourfeaturename)
- Commit your Changes (git commit -m 'Add suggested feature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Feel free to check the issues page.
Give a βοΈ if you like this project!
