Skip to content
/ andrew-stack Public template

Remix template with Postgres, auth, testing, linting, formatting, etc.

License

Notifications You must be signed in to change notification settings

ahuth/andrew-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remix Andrew Stack

Remix template for creating full-stack apps.

Table of contents

Tech stack

Requirements

Setup

Setup the app by doing the following:

  • Install the required Node version

    nodenv install
  • Install dependencies

    npm install
  • Start any required Docker services, such as Postgres:

    npm run docker
  • Setup the database:

    npm run setup
  • Run the build, which generates the App's Node server:

    npm run build

Development

  • Start the app in development mode, rebuilding assets on file change:

    npm start
  • Once running, visit:

    https://localhost:3000
    
  • By default there's a user with some data you can use to get started:

  • Manage the database with the Prisma CLI. See Developing with Prisma Migrate.

    Some common operations are:

    Goal Command(s)
    Apply pending migrations npm run prisma migrate dev
    Add a new model Modify prisma/schema.prisma and run npm run prisma migrate dev to generate a migration
    Explore the db npm run prisma studio
    Reset your db npm run prisma migrate reset
  • Debug server side code by placing a debugger in your code, open up Chrome, and go to chrome://inspect.