View and vote on user generated polls. GraphQL, Apollo and React.
The frontend and server applications are both in this repo, however are independent of each other to enable flexible deployment.
In development.
Node >= 9
Docker
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.
From the root of this project:
npm install -g prisma
cd server
prisma local start
prisma deploy
In the server directory run the following
npm install
npm start
From the root directory of the project run:
npm install
npm start