Giter VIP home page Giter VIP logo

fastify-drizzle-quick-start's Introduction

fastify-drizzle-quick-start

Quick start for Fastify, TypeScript, ESlint, Prettier and DrizzleORM

Quick Start

Comes equipped with

  • Dockerfile including postgres and redis
  • TypeScript
  • XO
  • Prettier
  • DrizzleORM
  • Fastify
  • Zod

Prerequisites

Getting Started

  1. Clone the repo
  2. Run yarn install
  3. Run docker-compose up -d (-d to detach from the terminal)
  4. Run yarn dev to start the dev server
  5. Make your changes
  6. Run yarn lint to lint your code
  7. Run yarn build to build the project
  8. Run yarn start to start the production server

fastify-drizzle-quick-start's People

Contributors

jiayugz avatar looskie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fastify-drizzle-quick-start's Issues

Postgres user doesn't have initial permission

First of all, thank you for setting this whole template up, it's been really helpful as an initial proof of concept with fastify + drizzle + zod.
After running it, the only issue I've found was that the DB user doesn't initially have permission to access the database, so you just need to connect to the database and create & grant user privileges. After that everything works as expected.
I would suggest an initialisation script, something along these lines, to automate that part and the template would be good to go. I'm open to raising a PR with these changes if you'd like, but wanted to double check with you first.

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.