jdlubrano / pitch-deck-uploader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pitch Deck Uploader

JS tests RSpec

Overview

This Rails-React application allows a user to upload a PDF version of their investor pitch deck and converts the slides into PNG images (one image per page).

System Dependencies

Installing ImageMagick

On Ubuntu

apt-get update
apt-get install imagemagick ghostscript

On Mac (OSX)

brew install imagemagick ghostscript

Setup

# Set up environment
nvm use
./bin/setup

# Run tests to verify setup
bundle exec rspec
yarn test

Postgres Setup

This application assumes the following defaults for Postgres:

username: postgres
password: password

If you already have a user and password configured for your own Postgres installation, you can override the defaults by creating a .env.local file and providing your own environment variables:

DB_USER=<your username>
DB_PASS=<your password>

If you need to add a user to your Postgres installation you can run the following commands:

$ psql
> CREATE USER postgres WITH PASSWORD 'password';
> ALTER USER postgres createdb;
> ALTER USER postgres with SUPERUSER;

Running Locally

I prefer to use overmind for local development although foreman should work well enough.

overmind s -f Procfile.dev

or

foreman start -f Procfile.dev

About


Languages

Language:Ruby 53.0%Language:JavaScript 40.5%Language:HTML 5.7%Language:CSS 0.8%Language:SCSS 0.0%