-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
- Bundler
- PosgtresSQL
- NPM
- An Amazon S3 bucket for ticket files
- Clone the repository into your projects directory
$ git clone git@github.com:seatshare/seatshare-rails /path/to/seatshare-rails`
- Install the required gems.
$ bundle install
- Install the required JavaScript assets.
$ npm install
- Create a
.env
file and add environment variables
$ cp .env-dist .env
$ vim .env
- Create a
config/database.yml
and add your PostgreSQL credentials if necessary.
$ cp config/database.yml.dist config/database.yml
$ vim config/database.yml
- Create the development and test databases and seed the initial data
$ rake db:setup
- Run the Rails server to bring up the application
$ rails server
- Docker and Compose
- An Amazon S3 bucket for ticket files
Note: This documentation is incomplete.
- Create a
.env
file and add environment variables
$ cp .env-dist .env
$ vim .env
- Create a
config/database.yml
and add your PostgreSQL credentials if necessary.
$ cp config/database.docker.yml config/database.yml
- Bring up Docker containers
docker-compose up -d
- Set up databases
docker exec -it seatshare-web /bin/bash
cd /app
bundle exec rake db:setup
exit
- Install npm packages (not yet documented)
Guard is an automated live-reload and test runner. It saves you from accidentally breaking the build as well as simplifies local development by automatically refreshing your running browser when a file changes. It is installed as part of the default development bundle.
$ bundle exec guard
MailCatcher is a useful tool for debugging email layout and deliverability issues. It runs by intercepting any outbound email from your development environment and sending it a web browser (typically available at http://localhost:1080/). If you provide set any value for the USE_MAILCATCHER
environment variable, the application will route it accordingly. You will need to remember to start MailCatcher along with your application to use it.
$ gem install mailcatcher
$ mailcatcher
You will use the Dotenv as explained in step 4 above to create a .env
file for the required environment variables in local development. The following are used within the application:
-
ADMIN_API_KEY
- Simple API key for allowing dashboard access -
SEATSHARE_S3_KEY
- S3 credentials to use for storing ticket files -
SEATSHARE_S3_SECRET
- S3 credentials to use for storing ticket files -
SEATSHARE_S3_BUCKET
- Bucket name to use for storing ticket files -
SEATSHARE_S3_PUBLIC
- Public address for S3 downloads -
TWILIO_ACCOUNT_SID
- Account identifier for Twilio -
TWILIO_AUTH_TOKEN
- Authentication token for Twilio -
TWILIO_OUTBOUND_NUMBER
- Outbound phone number for Twilio
-
USE_MAILCATCHER
- If set to any value, emails are routed to MailCatcher in development
-
MANDRILL_SMTP_USER
- User identifier for Mandrill -
MANDRILL_SMTP_PASS
- API key for Mandrill -
MANDRILL_SMTP_HOST
- Hostname to use with Mandrill -
GOOGLE_ANALYTICS_ID
- Google Analytics profile identifier -
MIXPANEL_API_KEY
- API key for Mixpanel