Hacker News clone practice

This app allows users to create, edit, and edit articles and comments.

Installation

In the terminal, run the following commands:

  • Repo clone to your local computer
git clone https://github.com/bangnguyen77/hacker_news2
  • System dependencies
bundle install
  • Database creation - Create test and development databases
$ rails db:create
$ rails db:migrate
$ rails db:test:prepare
  • In a new terminal, start the postgres server:
$ postgres
  • How to run the test suite

  • How to start the rails server

Start

$ rails server

View the default page served by navigating to:

localhost:3000