Skip to content

danbb1/recipe-app

Repository files navigation

Recipe App

Built with Gatsby, Material UI, Apollo Client, Auth0 and Fauna DB.

Live demo at https://modest-curie-b92a14.netlify.app/

Login with the following credentials:

User: [email protected] Password: Password1!

To start development server:

OPTIONAL: To persist data between shutdowns, set up a volume with:

docker volume create your-volume-name

Add the following flag to the run command:

-v your-volume-name:/var/lib/faunadb
  1. Run the docker image(assumes docker image is pulled):
docker run --name faunadb -p 8443:8443 -p 8084:8084 fauna/faunadb
  1. With fauna-shell installed, add endpoint with alias localhost and key as secret:
fauna add-endpoint http://localhost:8443/ --alias localhost --key secret
  1. Create database:
fauna create-database recipe_app_dev --endpoint=localhost
  1. Create database key:
fauna create-key recipe_app_dev --endpoint=localhost

This command returns a key for interacting with the database and will need to be recorded in .env files and in the headers of any request.

  1. Upload the graphql schema from the REST client.

  2. Start development server:

netlify dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published