This project involves authenticating users to access certain features of the application.
Here is a screenshot of the index page with a logged in member.
About | Installations | Usage | App | Built With | Author
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.
- ruby 2.7.0p0 (2019-12-25 revision 647ee6f091)
- rails 5.2.3
- Gems/Dependencies
- Bootstrap (5.0.0.alpha1)
- Devise (4.7.2)
Here is a link for live demostration
To use the code in this repository, follow the steps in this section:
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.
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.
Once you have a local copy of the entire project on your computer and you don't meet the above preliquisites, then:
- Visit Ruby Installations to install ruby version 2.7.0
- Visit Rails installations guide to install rails version 5.2.3
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:createto setup the database. - Run
rails db:migrateto update the database. - run
rails sorrails serverto 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.
👤 Mworekwa Ezekiel
- Github: @vanheaven-ui
- Twitter: @MworekwaE
- Linkedin: @linkedin
- Email: ezekiel
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:
- Fork this repository to your remote respository by clicking the Fork button in this repository.
- Clone this repository to a directory on your computer by following Github guidelines.
- Change directory into the directory where you cloned this repository to.
- Open the directory using your favorite editor.
- Create a feature branch off the develop branch.
- Make and commit the nuanced code.
- Open a pull request describing the improvements made And your reward awaits in heaven.
Give a ⭐️ if you like this project!
