Skip to content

pranav7/cadet-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Install rvm

\curl -sSL https://get.rvm.io | bash -s stable --ruby

Follow the post install instructions to source rvm and get started.

Install Ruby version 2.4.1

rvm install 2.4.1

Install Postgresql & Redis

brew install postgresql
brew install redis

Install Yarn

brew install yarn

Copy Config Files

cp cadet_config.example.yml cadet_config.yml
cp secrets.example.yml secrets.yml

Install Bundler

gem install bundle
bundle install

Install Packages

yarn install

Create Database & Migrate

rails db:create
rails db:migrate

Add AWS Environment Variables

Generate an API Access Key Id and Secret Key and set the environment variables

export AWS_ACCESS_KEY_ID="<AWS_ACCESS_KEY_ID>"
export AWS_SECRET_ACCESS_KEY="<AWS_SECRET_ACCESS_KEY>"

Run Sidekiq & Rails Server

bundle exec sidekiq -q default -q mailers
bundle exec rails server

In other terminal tab, run webpack

./bin/webpack-dev-server

Deploying to Production

bundle exec cap production deploy

Connecting to Production Instance

Make sure the SSH config is appropriately created

host *getcadet.com
  # IdentityFile ~/.ssh/
  IdentityFile ~/.ssh/id_digital_ocean_rsa
  IdentitiesOnly yes
  ForwardAgent yes
ssh -i ~/.ssh/id_digital_ocean_rsa [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •