Giter Site home page Giter Site logo

generic-dashboard's Introduction

Code Style: Google

Frameworks

Made with Next.js, Prisma and MUI, written in Typescript.

How to use

  • Create a new project from this template

  • Create a Personal Access Token on GitHub with the repo scope and add it to your repository secrets as RELEASE_PLEASE_TOKEN

  • Every commit pushed to the main branch will trigger a release draft on GitHub, once you're ready to release it, merge the draft and a new release will be created

  • Copy .env.sample to .env and adapt the variables

  • Set the environment variable AUTH_SECRET with a random string generated with openssl rand -base64 33

  • Install dependencies: pnpm i

  • Update the database with npx prisma migrate dev

  • Start the app with pnpm dev

How to sync your database with your new Prisma schema

  • Run npx prisma migrate dev

How to seed your database

  • Edit prisma/seed.ts to customize the seed data

  • Run npx prisma db seed

Deployment

Vercel

This project should deploy successfully as-is on Vercel

  • Install the Vercel CLI and run vercel login

  • Run vercel link to create a new Vercel project or link to an existing one

  • Navigate to the generated .vercel folder, and open project.json to find the projectID and orgId

  • In GitHub, set VERCEL_PROJECT_ID to your projectID and VERCEL_ORG_ID to your orgID

  • Retrieve your Vercel Access Token and set it as the value of VERCEL_TOKEN

  • Setup a Postgres storage on Vercel using the DATABASE environment variable prefix

  • Add the environment variable AUTH_SECRET with a random string generated with openssl rand -base64 33

  • Edit .github/workflows/deploy-to-vercel.yml and remove if: false to enable the workflow

  • Your app will be deployed automatically on every version published

  • (Optional) Add an environment variable CRON_SECRET with a random string to enable the cron jobs

Other platforms

  • Set the environment variables

  • Install dependencies: pnpm i

  • Build the app with pnpm build

  • Start the app with pnpm start

Contributing

  • Fork the project

  • Make sure your NodeJS version is up to date

  • Copy .env.sample to .env and adapt the database URL

  • Install dependencies: pnpm i

  • Update the database with npx prisma migrate dev

  • Start the app with pnpm dev

  • Commit and push your changes

  • Create a pull request

generic-dashboard's People

Contributors

zenoo avatar

Watchers

 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.