- Create a new database on https://dashboard.fauna.com
- Create a collection named
ballots
- Create a new server key on the security tab
- Copy the generated key and paste it into a
.env
file in the root directory of the project
# .env example
FAUNA_SECRET=YOUR_COPIED_SECRET
yarn start
yarn global add now # if you don't have it installed
now
Paste your server secret in project's environment variables section