MunavvarSinan / nodejs-prisma-docker-postgres-starter

npx nodejs-docker-starter my-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npx nodejs-docker-starter my-app

Nodejs-Docker-Postgres-starter

A starter project for building Rest APIs with Node.js, Typescript, Postgres, and Prisma. It provides a basic folder structure and starter files to help you get started with your own Rest API quickly and easily.

Features

  • Typescript for type safety
  • PostgresQL for data storage
  • Prisma for ORM

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • Postgres
  • Docker

Installation

  1. Installation command : npx nodejs-docker-starter my-app
  2. Install necessary dependencies : cd my-app && pnpm install `

Running the Application

  1. Start the server: docker compose up

Testing

  1. Run tests: npm test

Folder Structure

  • src folder contains the source code
    • modules folder contains database files
    • index.ts file contains the main application entry point
  • prisma folder contains prisma schema and migrations

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

About

npx nodejs-docker-starter my-app

License:GNU General Public License v3.0


Languages

Language:TypeScript 83.2%Language:Dockerfile 16.8%