Skip to content

michelegera/snapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snapi

snapi is a GraphQL API for Marvel Snapâ„¢.

Getting Started

# Install dependencies
npm install

# Set up env variables
cp .env.example .env # …and add a PostgreSQL connection string

# Initialize and seed the database
npx prisma migrate reset

# Start the server
npm run dev

# Open the GraphQL Playground
open http://localhost:4000/graphql

Development

If you change the schema, you’ll need to regenerate the Prisma client:

npx prisma migrate dev --name <migration-name>
npx prisma generate