Articles under a category page
This is the RoR Capstone project. The main goal for this project was to build a lifestyle article app by using Given Design and completing the requirements mentioned in the project requirement. !PeTsLifestyLE The website is about reading and writing an article about pets. Users can also vote and comment on an article but to do that users need to signup and login.
- User signup and log in using name only (Name must be unique)
- Create Category
- Create Article
- Add an image to an article during article creations
- proper validations on form fields.
- Display a Home page with a list of categories with the most recent article.
- User can vote for an article.
- User can comment on an article [Extra Feature].
- The article which has the biggest number of votes will be displayed on the Home page.
- Category page displays all the articles under that category.
- Ruby v2.7.2
- Ruby on Rails v5.2.4
- Bootstrap
Checkout the live demo at Live
To get a local copy up and running follow these simple example steps.
-
If you're running the Windows Operating System, open your command prompt. On Linux, Open your terminal.
-
Copy and paste the following code into the Terminal:
https://github.com/Div685/ror-lifestyle-app.git
-
Press Enter.
-
Once the repository has been cloned, navigate inside the repository
-
After you will need to update and install some of the depedency. Use following command to install the packages
bundle install
yarn install
rails db:create
rake db:migrate
- once you install the packages and migrate the database you can run the server
rails s
orrails server
- Enjoy
Ruby: 2.7.2 Rails: 5.2.3 Postgres: >=9.5
Instal gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
To make sure the linters' checks using Github Actions work properly, you should follow the next steps:
- On your recently forked repo, enable the GitHub Actions in the Actions tab.
- Create the
feature/branch
and push. - Start working on your milestone as usual.
- Open a PR from the
feature/branch
when your work is done.
Start server with:
rails server
Open http://localhost:3000/
in your browser.
rspec --order defined --format documentation
- Please Add
--order defined
flag if you runnig all the tests at once. - you can also run test individually by specifying
file name
e.grspec spec/models/like_spec.rb
Tests will be added by Microverse students. There are no tests for initial features in order to make sure that students write all tests from scratch.
👤 Divyesh Patel
- GitHub: @Div685
- Twitter: @div_685
- LinkedIn: Divyesh Patel
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- I would like to thank Nelson Sakwa for providing such a wonderfull design. check out his other design on Behance.
- Ruby-doc
- Rails-doc