/myapp

Primary LanguageRuby

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

Getting Started

To get a local copy of the repository please run the following commands on your terminal:

$ cd <folder>
$ git clone git@github.com:Dipeshtwis/twitter-redesign.git
$ cd twitter-redesign
$ bundle install
$ yarn install --check-files

Setup database with:

make sure you have postgres sql installed and running on your local machine

Go to config > database.yml

Replace xxx with your own postgresql username and password

username: xxx
password: xxx

create and migrate the database by these commands

   rails db:create
   rails db:migrate

How to run

Start server with:

    rails s

Open http://localhost:3000/ in your browser.

To run Test

$ rails db:migrate RAILS_ENV=test
$ rspec --format documentation