Coder Social home page Coder Social logo

blitz-boilerplate's Introduction

Readme

Development

NODE > 18.13.0

don't use npm use yarn!

yarn install yarn run email-install-dependencies yarn run db:migrate yarn run dev

Env

  1. Add .env.local file to root of project and fill with correct values
  2. To work with emails on production you need RESEND_API_KEY (free to use https://resend.com/overview)
  3. To work with Uploading files you need UPLOADTHING_SECRET UPLOADTHING_APP_ID (free to use https://uploadthing.com/)

PROD Vars

For deploying on prod you can use for example: railway.app (where you can add POSTGRES DB)

All Variables that you need to add to prod env:

DATABASE_URL=${{Postgres.DATABASE_URL}}
PGDATABASE=${{Postgres.PGDATABASE}}
PGHOST=${{Postgres.PGHOST}}
PGPASSWORD=${{Postgres.PGPASSWORD}}
PGPORT=${{Postgres.PGPORT}}
PGUSER=${{Postgres.PGUSER}}
PORT=3000
RESEND_API_KEY=xxxx
SESSION_SECRET_KEY=xxxx
UPLOADTHING_APP_ID=xxxx
UPLOADTHING_SECRET=xxxx

DB locally:

// .env.local DATABASE_URL=postgresql://postgres@localhost:5431/app-name

  • can use https://dbngin.com/ to manage local postgres db
  • (the most important is the same port in .env.local and dbngin DB instance)
  • don't forget to Start instance in dbngin

Email:

to work correctly NODE > 18.13.0

to start dev server yarn run email-install-dependencies yarn run email

starts on http://localhost:3009/

blitz-boilerplate's People

Watchers

czechue 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.