Skip to content

DeVuDeveloper/restaurants-app-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Restaurant App

Screenshot

Screenshot

Description πŸ—οΈ

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.

(back to top)

Live Demo

(Live Preview)

Getting Started 🏁

Prerequisites and Dependencies πŸ“œ

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/

Setting Up PostgreSQL

  • 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>

Clone this repository

git clone https://github.com/VuDej/restaurants-app.git

Move into the cloned directory with

cd hospital

Setup

Install gems with:

bundle install

Setup the database with:

rails db:create
OR
rake db:create

Run linter

rubocop .

Auto-correct

In auto-correct mode, RuboCop linters offenses will be automatically fixed:

For rubocop:

rubocop -A

OR

rubocop --auto-correct-all

Run Project

Start server with:

rails s
OR
rails server -p 3000

This will start a server at:

localhost:3000

You can paste or type it on url bar

Run tests

Make sure you have installed gems with:

 bundle install

Then run all the tests with:

rspec spec

(back to top)

Roadmap

  • 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

(back to top)

Built With πŸ”¨

Languages
RubyRuby on RailsPostgres
Tools πŸ› οΈ
Git GitHub Markdown Visual Studio Code

(back to top)

Authors ✍️

πŸ‘€ VuDej

| Github profile Linkedin profile Twitter profile |

(back to top)

🀝 Contributors

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.

(back to top)

πŸ“ License

This project is licensed by License: MIT

Show your support πŸ’ͺ

Give a ⭐️ if you like this project!

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published