Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.06 KB

File metadata and controls

41 lines (26 loc) · 1.06 KB

as credenciais estão usando a conta de email principal do ntec via oauth google

Prisma project template

Description

This template uses:

  • Typescript
  • Prisma
  • NodeJS
  • Express
  • Postgres
  • ESLint
  • Swagger

Configuration

Make sure you have node and docker installed by typing node -v and docker -v in terminal.

  1. Use the repository as template (by forking it or using this one directly)
  2. Install dependencies yarn
  3. Run docker run -d --name postgres -e POSTGRES_PASSWORD=mypass -e -p 5432:5432 postgres:latest
  4. Create a database in your container
  5. Configure .env file copying the .env.example and setting the variables

Scripts

  • yarn dev:server: starts the server in the port you specified in .env (default 3333)

  • yarn prisma: enables prisma cli

  • yarn lint: check linting rules based in the .eslintrc.json file

  • yarn build: transpile the src directory

Notes

Don't forget to check if the template features fits your use case!

Check for the .github/workflows files, because they will need to be updated once you start your deploy