Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagohrcosta/restaurants_with_pundit
A simple project that use Pundit to manage authorization.
https://github.com/thiagohrcosta/restaurants_with_pundit
css3 devise html5 pundit rails ruby
Last synced: 18 days ago
JSON representation
A simple project that use Pundit to manage authorization.
- Host: GitHub
- URL: https://github.com/thiagohrcosta/restaurants_with_pundit
- Owner: thiagohrcosta
- Created: 2021-04-27T01:26:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T03:43:30.000Z (over 3 years ago)
- Last Synced: 2024-10-22T18:10:27.442Z (2 months ago)
- Topics: css3, devise, html5, pundit, rails, ruby
- Language: Ruby
- Homepage:
- Size: 190 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Restaurant with Pundit
![main](https://res.cloudinary.com/dloadb2bx/image/upload/v1619494712/restaurant1_qs0p9t.png)## Technologies
This project was created with:- [Ruby](https://www.ruby-lang.org/pt/)
- [Rails](https://rubygems.org/gems/rails)
- [ERB](https://ruby-doc.org/stdlib-2.7.1/libdoc/erb/rdoc/ERB.html) (for template system with Ruby)
- [Pry-byebug](https://rubygems.org/gems/pry-byebug/versions/3.4.0?locale=pt-BR) (for debugging)
- [Bootstrap](https://getbootstrap.com/)
- [Simple_form](https://rubygems.org/gems/simple_form)
- Postgresql
- [Devise](https://rubygems.org/gems/devise/versions/4.2.0?locale=pt-BR)
- [Pundit](https://rubygems.org/gems/pundit/versions/1.1.0)## How to run this project
Download or clone it. Then run in the main folder the command `rails server`. If needed, run `bundle install` to check if all gems are correctly installed. Then open the project on `localhost:3000`## What user can do?
As user you can manipulate all **CRUD** operations like:- Guest can create a account;
- Guest can't access restaurants - Need to login;
- Guest can create a account and login;
- User can create a new restaurant;
- User can edit or delete their own restaurant;
- User can't edit or delete restaurants created by others users.