Skip to content

Using prisma (typescript), apollo, graphql, and react!

Notifications You must be signed in to change notification settings

NovvumHacks/fullstack-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullstack Prisma and React Template

Repo

├── client (CRA Apollo Frontend Directory )
│   ├── package.json
│   ├── public
│   │   └── index.html
│   ├── src
│   │   ├── apollo-client.js
│   │   ├── components
│   │   │   └── ListItem.js
│   │   ├── index.js
│   │   ├── styles.css
│   │   └── views
│   │   └── BasicList.js
│   └── yarn.lock
├── server (Prisma Typescript Template )
│   ├── README.md
│   ├── database
│   │   ├── datamodel
│   │   │   ├── enums.graphql (enums here)
│   │   │   └── types.graphql (database types here)
│   │   ├── prisma.yml
│   │   └── seed.graphql
│   ├── package.json
│   ├── src
│   │   ├── generated
│   │   │   ├── prisma.graphql
│   │   │   └── prisma.ts
│   │   ├── index.ts
│   │   ├── resolvers
│   │   │   ├── Query.ts
│   │   │   └── index.ts
│   │   ├── schema.graphql
│   │   └── utils
│   │   ├── MergeSchemaHelper.ts
│   │   ├── getContext.ts
│   │   └── getUser.ts

Get Started

yarn install

to work on Graphql

cd server

to work on React

cd client

Server

Rename .env.sample to .env

Create a new PRISMA_SECRET

#i.e PRISMA_SECRET="mysuppersecretpassc0de"
PRISMA_SECRET="Your_Secret_Here"

Create your datamodel under database/datamodel

  • enums.graphql used for Enums
  • types.graphql used for Database objects

After configuring your datamodel

yarn prisma deploy

Select Demo Server may prompt a login

Enter all necessary info i.e project name, stage, and such

START HACKING! 🎊 🎉 🎊 😎

About

Using prisma (typescript), apollo, graphql, and react!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published