Skip to content
/ NEPT-Template Public template

NEPT - Node Experss Prisma Typescript template

License

Notifications You must be signed in to change notification settings

Thund3rHawk/NEPT-Template

Repository files navigation

NEPT - Node Express Prisma TypeScript Template

Node.js Express Prisma TypeScript

Overview

This is a Node.js, Express, Prisma, and TypeScript template designed to help you quickly set up a robust and scalable backend application.

Features

  • Node.js: A JavaScript runtime built on Chrome's V8 JavaScript engine.
  • Express: A minimal and flexible Node.js web application framework.
  • Prisma: A next-generation ORM that helps you query your database in a type-safe way.
  • TypeScript: A strongly typed programming language that builds on JavaScript.

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)
  • MongoDB (or any other supported database)

Installation

  1. Clone the repository:

    git clone https://github.com/Thund3rHawk/NEPT-Template.git
  2. Install dependencies:

    cd NEPT-Template
    npm install
  3. Set Up Environment Variables:

    This project uses environment variables to manage configuration. You can find a sample configuration file named .env.sample in the root directory. To set up your environment variables, follow these steps:

    1. Copy the .env.sample file to a new file named .env:
      cp .env.sample .env
    2. Open the .env file and update the values as needed for your local development environment.

    Make sure not to commit your .env file to version control to keep your sensitive information secure.

  4. Set up the database:

    npx prisma generate

Running the Application

  1. Start the development server:
    npm run dev
  2. The server will be running at http://localhost:8080.

Project Structure

NEPT
├── prisma
│   └── schema.prisma
├── src
│   ├── controllers
│   │   └── user.controller.ts
│   ├── db
│   │   └── index.ts
│   ├── middlewares
│   │   └── errorHandler.moddleware.ts
│   ├── routes
│   │   └── user.routes.ts
│   ├── services
│   │   └── userService.ts
│   ├── utils
│   │   └── asyncHandler.ts
│   └── index.ts
├── .env.sample
├── .gitignore
├── .prettierignore
├── .prettierrc
├── package-lock.json
├── package.json
├── README.md
└── tsconfig.json

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

NEPT - Node Experss Prisma Typescript template

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published