Skip to content

thepeted/polling-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polling App

Description

View and vote on user generated polls. GraphQL, Apollo and React.

Project Structure

The frontend and server applications are both in this repo, however are independent of each other to enable flexible deployment.

Status

In development.

How To Run Bankend Server Locally

1. Check you have the pre-requisites

Node >= 9
Docker

2. Setup Environment Variables

Choose your own PRISMA_SECRET and APP_SECRET

export PRISMA_STAGE=dev
export PRISMA_CLUSTER=local
export PRISMA_ENDPOINT=http://localhost:4466/polling/dev
export PRISMA_SECRET=anystring
export APP_SECRET=anystring

You can also set these via a .env file placed in ./server.

3. Create a Prisma service and database.

From the root of this project:

npm install -g prisma
cd server
prisma local start
prisma deploy

4. Start GraphQL Server

In the server directory run the following

npm install
npm start

How To Run FrontEnd Development Server Locally

From the root directory of the project run:

npm install
npm start

About

View and vote on user generated polls. GraphQL, Apollo and React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published