It is a Lifestyle application. where Authors can post on several categories like Business, Sport, Entertainment, Fashion and so on. A reader can read an article and Upvote that article. A user(reader) can view authors, see the number of articles and the number of Upvotes an article has received. The most popular article(by highest upvote) gets an incentive of being on the front page/banner of the application as the most popular article. Other categories are showcased below as the most recent in each category.
It is a Lifestyle aplication, where Authors can post on several category like Bussiness, Sport, Entertainment, Fashion and so on. A user can read an article and Upvate that article. A user(reader) can view authors , see the number of article and the number of Upvote an Author has recieved. The most popular article(by highest upvote) gets an incentive of been on the front-page/banner of the application as the most popular article. Other category are showcased below as the most recent in each category.
To get a local copy up and running follow these simple example steps.
Read this to set up postgres for development or simply start project with rails new app_name --database=postgresql
Instal gems with:
bundle install
Setup database with:
To configure your databse.yml make this changes in config/database.yml
default: &default
adapter: postgresql
encoding: unicode
timeout: 5000
development: <<: *default
database: development
test: <<: *default
database: test
production: <<: *default
database: production
Then run
yarn install --chack-files
rails db:create
rails db:migrate
Start server with:
rails server
rails spec
AWS S3 buckets was used for active storage in production and development. Follow this tutorial to learn how to set up AWS S3 for active storage.
To make sure the linters' checks using Github Actions work properly, you should follow the next steps:
feature/branch
and push.feature/branch
when your work is done.Start server with:
rails server
Open http://localhost:3000/
in your browser.
rpsec --format documentation
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.
Heroku
Haroon Abdulrazaq
Contributions, issues and feature requests are welcome!
Feel free to check the fork this repo and create pull request if you want to make changes.
Give a if you like this project!
MIT License
Copyright (c) 2020 Haroon Abdulrazaq
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.