Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A web application where logged-in users are privileged to view authors of the posts and write their own posts. However, users who are not logged in cannot see the author of the articles unless they log in.

License

Notifications You must be signed in to change notification settings

vanheaven-ui/members-only

Repository files navigation

Restricted Access (Members-only App)

This project involves authenticating users to access certain features of the application.

View Code Github Issues GitHub Pull Requests Author Twitter Follow LinkedIn follow

Index Page Screenshot

Here is a screenshot of the index page with a logged in member.

screenshot

Content

About   |    Installations   |    Usage   |    App   |    Built With   |    Author

About

The project specifications were focused on restricting public access to certain features of the application by requiring log in. In this project, Devise gem and its helper methods were used for authentication while bootstrap was used to apply some quick style rules for the small user interface. More so, a member who is not signed in can only view a post but not the author of it while a member who is logged in can view both the post and the author of it.

🔧 Built with

  • ruby 2.7.0p0 (2019-12-25 revision 647ee6f091)
  • rails 5.2.3
  • Gems/Dependencies
    • Bootstrap (5.0.0.alpha1)
    • Devise (4.7.2)

Live Demo

Here is a link for live demostration

Click for app!

Usage

To use the code in this repository, follow the steps in this section:

🔨 Preliquisites

You should have the following inorder to run the code contained herein.

  • Ruby version ruby 2.7.0p0 (2019-12-25 revision 647ee6f091).
  • Rails version rails 5.2.3.

🔨 Setup

First get a copy of project on your computer:

  • Clone or download the repository to a local directory on your computer by following the Github instructions.

🛠 Installing

Once you have a local copy of the entire project on your computer and you don't meet the above preliquisites, then:

App

With the installations above complete, you are set to use the code and view the application built in this repository. Follow these simple steps:

  • Change directory into the directory where you cloned the repository.
  • Run rails db:create to setup the database.
  • Run rails db:migrate to update the database.
  • run rails s or rails server to start the server.
  • Once the server starts(Might take about 3-5 minutes), you can access the application by typing localhost:3000 in your browser and striking Enter.

✒️ Authors

👤 Mworekwa Ezekiel

🤝 Contributing

Contributions, issues and feature requests are welcome!

  • To create an issue, visit the issues page and create a new issue.
  • To contribute to the code base, follow the steps below:
    1. Fork this repository to your remote respository by clicking the Fork button in this repository.
    2. Clone this repository to a directory on your computer by following Github guidelines.
    3. Change directory into the directory where you cloned this repository to.
    4. Open the directory using your favorite editor.
    5. Create a feature branch off the develop branch.
    6. Make and commit the nuanced code.
    7. Open a pull request describing the improvements made And your reward awaits in heaven.

👍 Show your support

Give a ⭐️ if you like this project!

👏 Acknowledgements

The Odin project Guide:
Microverse guide:

About

A web application where logged-in users are privileged to view authors of the posts and write their own posts. However, users who are not logged in cannot see the author of the articles unless they log in.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published