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).
- Ruby 3.0.1 (installing with rvm)
- Postgres 9.6+
- NodeJS 14 (installing with nvm)
- ImageMagick (see below)
On Ubuntu
apt-get update
apt-get install imagemagick ghostscript
On Mac (OSX)
brew install imagemagick ghostscript
# Set up environment
nvm use
./bin/setup
# Run tests to verify setup
bundle exec rspec
yarn test
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;
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