Coder Social home page Coder Social logo

nodets-prisma-bootstrap's Introduction

NodeTS Prisma Bootstrap

This is a base NodeJS TypeScript Prisma App built with express and all configurations files included.

This repository is meant to be a base to build on top of for building an API.

Copy This App

git clone https://github.com/codingwithmanny/nodets-prisma-bootstrap myproject;
cd myproject;
rm -rf .git;
git init;
git remote add origin https://github.com/your/newrepo;

Requirements

  • NodeJS v18.12.1 or NVM

Local Setup

While in project directory:

Step 0 - (Optional) NVM Installation

# FROM ./

nvm install;

Step 1 - Install Dependecies

# FROM ./

pnpm install; # npm install;

Step 2 - Start Database

# FROM ./

docker compose up -d;

Step 3 - Set Environment Variables

# FROM ./

cp .env.example .env;

Step 4 - Run Migrations

# FROM ./

pnpm run db:migrate;

Step 5 - Run Seeds

# FROM ./

pnpm run db:seed;

Step 6 - Server Start

Development:

# FROM ./

pnpm dev; # npm dev;

Production:

# FROM ./

pnpm start; # npm start;

Optional - Prisma Studio

# FROM ./

pnpm run db:studio;

Additional - Tear Down Database

# FROM ./

docker compose down --remove-orphans -v;

Production Commands

Build

# FROM ./

pnpm build; # npm run build

Build & Serve

# FROM ./

pnpm start; # npm start

Tests

All Tests

# FROM ./

pnpm test; # npm run test;

Jest Watch

pnpm test:jest; # npm run test:jest;

Jest Coverage

pnpm test:coverage; # npm run test:coverage;

Eslint

pnpm test:lint; # npm run test:lint

nodets-prisma-bootstrap's People

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.