This is an app where users can signup, publish articles and vote other articles.
In this project, we were required to build an article app where users can sign-up/sign-in/sign out, create articles, and vote other users's articles. The project enforced our skills in using most of the core functionalities of the Rails framework.
> The app is tested using RSpec for unit and integration tests
- Users can sign up/sign in/sign out by filling out the forms
- Users can create articles
- Users can vote articles
- Admin user can create categories
Video presentation of the project here
Video about N+1 problem and its solutionhere
This web app is live, you can check it here: Live demo
- Ruby on Rails
- PostgreSQL
- Bootstrap
- Rails Active Storage
- Fontawesome
- Rspec
- Capybara
- Rubocop
- VS Code
- Google developer tools
- Git and GitHub
- Heroku
- Cloudinary
- A lot of love
To get this project up and running locally, you must have ruby, Ruby on Rails and postgres installed on your computer.
To get this project set up on your local machine, follow these simple steps:
Step 1
Navigate through the local folder where you want to clone the repository and run
[email protected]:SajjadAhmad14/RoshanLife.git
to clone the repo to your local folder.
or with https
https://github.com/SajjadAhmad14/RoshanLife.git
.
Step 2
Run cd RoshanLife
Step 3
Run bundle install
to install the gems from the Gemfile
.
Step 4
Run yarn install
to install the npm packages from the package.json
file.
Step 5
Open .env
file and add your credenatials for your postgres
POSTGRES_USER: example
POSTGRES_PASSWORD: password
Step 6
Run rails db:create
and rails db:migrate
to create and migrate the database tabels and associations.
Step 7
Run rails s
to start the rails server.
Step 8
Now you can visit the app at http://localhost:3000
.
-
Open Terminal
-
Run the tests with the command:
rspec
👤 Sajjad Ahmad
Our favourite contributions are those that help us improve the project, whether with a contribution, an issue, or a feature request!
If you've read this far....give us a ⭐️!
This project is licensed by Microverse and the Odin Project
- Design idea by Nelson Sakwa on Behance
- Microverse
- w3schools
- The Odin Project
- Stackoverflow
- Bootstrap