GithubHelp home page GithubHelp logo

aptt-template's Introduction

Minimal Template for Astro, Prisma, Tailwind and TypeScript

๐Ÿง‘โ€๐Ÿ’ป Requirements

๐Ÿš€ Getting Started

  1. Clone/Download repo

  2. Install dependencies

npm install
  1. Copy .env.example to .env and update the values (if required)

  2. Start Dockered Postgres and wait for it to start

docker-compose up
# use "docker-compose up -d" to run in background
  1. Push prisma schema to db
npx prisma db push
  1. Start the dev server
npm run dev

๐Ÿง™โ€โ™‚๏ธ Tips

  • use vscode to run eslint on save and disable normal formatting
  • use Portainer to manage your docker containers

๐Ÿงž Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm start Serve your production build locally
npm run preview Preview your build locally, before deploying
npx prisma db push Push prisma schema to db
npx prisma studio Open prisma studio (web db viewer)
npx prisma migrate dev Run prisma migrations (probably not neccessary)
npx prisma generate Generate prisma client
docker-compose up Start Dockered Postgres and wait for it to start
docker-compose down Stop Dockered Postgres
npm run astro ... Run CLI commands like astro add, astro check
npm run astro --help Get help using the Astro CLI

aptt-template's People

Contributors

astrobot-houston avatar lufrey 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.