Skip to content

lucas-aragno/sinatra-graphql

Repository files navigation

sinatra-graphql starter kit

This is an opinionated skeleton app that uses Sinatra, Trailblazer, Apollo as a GraphQL client and of course React

How to run it

Install the ruby dependencies:

bundle

Install the JS dependencies

npm install

or

yarn install

or

pnpm install

or whatever floats your boat.

Then set up the ENV vars

cp .env.sample .env

and change the sample to what applies to your project/machine

GRAPHQL_URL="http://localhost:5000/graphql"
DATABASE_NAME="todo-sinatra"
DATABASE_USER="lucas"
DATABASE_PASSWORD="security"
DATABASE_HOST="localhost"
DATABASE_PORT="5432"

once all the dependencies are installed you can either run

./bin/server

if you have foreman installed, otherwise you can open 2 terminals and run:

bundle exec unicorn -p 5000 -E "development" -c config/unicorn.rb

and

npm run webpack:dev

on each one.

About

Trailblazer + Sequel + Sinatra + GraphQL + React + PostCSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published