Skip to content

lucas-aragno/sinatra-graphql

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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