Skip to content

noxmwalsh/Rails-Dog-Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screen Shot 2025-04-13 at 5 29 34 PM
Prerequisites

The setups steps expect following tools installed on the system.

  • Github
  • Ruby 3.4.4
  • Rails 8.0.2
  • Node v20.17.0 (I recommend using NVM for managing and switching nodes)
  • Yarn 1.22.22
1. Check out the repository
git clone git@github.com:noxmwalsh/coding_challenge.git
2. Create database.yml file

Copy the sample database.yml file and edit the database configuration as required.

cp config/database.example.yml config/database.yml
3. Create and setup the database

Run the following commands to create and setup the database.

bundle exec rake db:create
bundle exec rake db:setup
bundle exec rake db:seed (if you want scaffold data)
4. Build assets
yarn build
5. Start the Rails server

You can start the rails server using the command given below.

bundle exec rails s

Or, if you're planning on doing development on the project, just run the following

bin/dev

And now you can visit the site with the URL http://localhost:3000.

Features List:

  • Users can sign-up, sign-in, and sign out. Signed in users can do write actions on the app (for example, creating or deleting a post)
  • Each post has five attributes: Body, Description, Title, author (which is a User) and Hero Image (Using ActiveStorage and miniMagick). The signed in author is the assigned user of a created post. Everything should validated.
  • Pagination is available (max post per page is 10) and is done in an accordian style
  • There's a bunch of rspec specs added to cover everything from the controllers, models, sign-in, and routes
  • Each page has a unique slug to it that's derived from the title to make it human readable
  • The hero images is uploadable locally in development. On production/heroku, it uploads directly to AWS S3!
  • It's ready to run at the start with seed data. Dog themed, of course 🐕
  • Uses Bootstrap for styling and DOM structure
  • Uses Postgres for data persistence, although nothing is stopping anything from swapping the adapter and DB
  • It's deployed to Heroku right now! In fact, it automatically deploys and follows a pipeline ruleset (so, it's a lightweight CI/CD setup). Pull requests on this repo will run checks and will not allow merging until everything passes.
  • Did I mention this is a dog themed blog?

About

Quick coding challenge for HoD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors