Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Figaarillo/noderplate

Repository files navigation

Noderplate

Noderplate is a boilerplate for Node.js projects, providing a well-structured foundation for building scalable and maintainable applications. It includes a setup with TypeORM, Fastify, and other essential tools for development.

Features

  • TypeORM Integration : Simplifies database interactions with a TypeScript ORM.
  • Fastify : A high-performance framework for Node.js.
  • Modular Architecture: Clean separation of concerns with a well-defined structure.
  • Environment Configuration: Managed via dotenv.
  • TypeScript: Strongly typed development environment.
  • Pre-configured Tooling: Includes ESLint, Prettier, Husky, and more for code quality and consistency.

Getting Started

Prerequisites

  • Node.js (>= 14.x)
  • pnpm (>= 6.x)
  • Docker (for database setup)

Installation

  1. Clone the repository:

    git clone https://github.com/Figaarillo/noderplate.git
    cd noderplate
  2. Install dependencies:

    pnpm install
  3. Set up environment variables:

    cp .env.dev .env
    # Update .env with your configuration
  4. Run the database using Docker:

    docker-compose up -d

Development

To start the development server:

pnpm run dev

Building

To build the project:

pnpm run build

Running Migrations

To generate new migrations:

pnpm run migration:generate

To run migrations:

pnpm run migration:run

Linting and Formatting

To lint the code:

pnpm run lint

To format the code:

pnpm run prettier

Testing

To run tests:

pnpm run test

Project Structure

.
├── src
│ ├── main.ts # Application entry point
│ ├── shared # Shared modules and utilities
│ │  ├── config
│ │  ├── domain
│ │  └── utils
│ └── user # User domain-related modules
│ ├── aplication
│ ├── domain
│ └── infrastructure
├── docker-compose.yml # Docker configuration
├── package.json # Project configuration and scripts
└── tsconfig.json # TypeScript configuration

Contributing

Contributions are welcome! Please follow the code of conduct and submit pull requests for any enhancements or bug fixes.

License

This project is licensed under the MIT License.

About

Noderplate is a boilerplate for Node.js projects

Topics

Resources

Stars

Watchers

Forks

Contributors

AltStyle によって変換されたページ (->オリジナル) /