Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Latest commit

 

History

History
47 lines (34 loc) · 1016 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 1016 Bytes

Destination

Curated travel recommendations from tastemakers you love

Getting started

Prerequisites

Destination requires a PostgreSQL database. The easiest way to setup Postgres locally on a Mac is with Postgres.app. You can download and install it from the website.

Local setup

To run the app locally, clone the repo and then install the dependencies:

gem install bundler
bundle config set --local without 'production'
bundle install

Set up a local .env file with the appropriate values for your local database:

cp .env.example .env
# Edit .env and add your values

Next, migrate the database:

rails db:migrate

Finally, run the test suite to verify that everything is working correctly:

rails test

If the test suite passes, you'll be ready to run the app in a local server:

rails server

When developing locally, you should also run webpack in another terminal window:

bin/webpack-dev-server