Git Product home page Git Product logo

fullstack-template's Introduction

Fullstack Monorepo template

Next.js 13 and Hasura project template.

Setup

Step 1 Setup Hasura

  1. Create api/hasura.env , you can use .env.example as a starting point
  2. Start local hasura instance by running cd api/ && docker compose up -d
  3. While in api/ you can start the Hasura console yarn hasura console
  4. You can access pgadmin4 on http://localhost:5050 login details are in the docker-compose file

Step 2 Connect Hasura to source database

When starting from scratch:

  1. Set the env variable PG_DATABASE_URL appropriately. If you copied .env.example, this defaults to the posgres docker container installed with Hasura. Doesn't have to though!
  2. In the Hasura console, click the data tab then connect to existing database

Step 3 Apply Hasura Metadata

When using the fully configured template:

  1. Run yarn hasura metadata apply to load the latest
  2. Login the the hasura console with yarn hasura console - any configuration or database changes will be tracked and can later be applied as migrations or metadata - more information in this doc https://hasura.io/docs/latest/migrations-metadata-seeds/overview/

fullstack-template's People

Contributors

techshell avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.