Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zacharynoble/fastify-drizzle-template

A Node.js & Fastify guide for user authentication, request validations, ORMs, & more.
https://github.com/zacharynoble/fastify-drizzle-template

authentication drizzle drizzle-orm error-handling eslint fastify logging nodejs postgres prettier rest-api sessions sql starter-kit template typescript

Last synced: 28 days ago
JSON representation

A Node.js & Fastify guide for user authentication, request validations, ORMs, & more.

Awesome Lists containing this project

README

        

# Guide

Frontend built to integrate 1:1 with this project: https://github.com/zacharynoble/next-template

### Set-up Environment Variables

- Create a new file at the root level of the project directory named ```.env```.
- Copy the contents of ```.env.example``` to ```.env```
- Update any environment variables using placeholders to match your config

### Install Packages
npm install

### Start the application in dev mode
npm run dev

### Start the application in production mode
npm run build
npm run start

### Generate SQL migration script
npm run generate

### Browser SQL editor
npm run studio