https://github.com/dansantander/members_only
Rails project for authentication.
https://github.com/dansantander/members_only
Last synced: 6 months ago
JSON representation
Rails project for authentication.
- Host: GitHub
- URL: https://github.com/dansantander/members_only
- Owner: dansantander
- Created: 2020-05-25T19:10:43.000Z (about 6 years ago)
- Default Branch: development
- Last Pushed: 2023-03-08T19:05:54.000Z (over 3 years ago)
- Last Synced: 2025-06-07T14:44:31.073Z (about 1 year ago)
- Language: Ruby
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Members-only
In this project we demonstrate authentication using Devise framework
## Built With
- Ruby 2.7
- Ruby on Rails 5.2
- HTML forms, Rails form_tag and form_for
- Git, Github and VScode
## INSTALLATION
- Ensure the project dependencies are installed
- clone the repo the command `git clone https://github.com/codecell/activerecords_project.git`
- Navigate to the project folder `cd activerecords_project`
- run `bundle` or `bundle install`
## TESTING THE AUTHENTICATION
- From the terminal, run the command => `git clone https://github.com/dansantander/members_only.git`
- Install the project dependencies => `bundle install`
- Enter the project folder => `cd members_only`
- Start the server => `rails server`
- Head over to your server on localhost:3000
- Create a new user using the signup form, check the checkbox that says 'become a member?'.
- Create another user using the signup form, this time leave the checkbox that says 'become a member?' unchecked.
- Sign in with the user that ticked the checkbox and head over to `localhost:3000/posts/new` and create as many posts as required
- Preferably open another tab in your browser and also sign in with the second user that unchecked the 'become a member?' checkbox
- To confirm the `members-only` authentication, you'll see that the user A that checked the box will be able to see the authors of each post right below it's title
while
user B that has the box unchecked will not be able to see the authors of each post.
- A client that has not registered also will only be able to see the posts without their authors.
## Authors
👤 **Daniel Santander**
- Github: [@dansantander](https://github.com/dansantander)
- Linkedin: [Daniel Santander](https://www.linkedin.com/in/daniel-santander)
- Twitter: [@dansantandr](https://twitter.com/dansantandr)
👤 **Alfred Ezaka**
- Github: [@codecell](https://github.com/codecell)
- Twitter: [@the_codecell](https://twitter.com/the_codecell)
- Linkedin: [ezaka alfred](https://www.linkedin.com/in/alfrednoble/)