Coder Social home page Coder Social logo

tanzeebul-tamim / express-mongoose-ts-starter_pack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 35 KB

This repository contains a starter template for Express.js applications with TypeScript and Mongoose integration.

TypeScript 100.00%
boilerplate-template dotenv eslint expressjs mongodb mongoosejs prettierrc starter-template ts-node-dev typescript

express-mongoose-ts-starter_pack's Introduction

Express TypeScript Mongoose Starter Pack

A starter template for building Express applications with TypeScript and Mongoose. This template will help you get started quickly with new projects and ensure a consistent setup across your work.

Features

  • Express.js for building robust APIs
  • TypeScript for static type checking
  • Mongoose for MongoDB object modeling
  • ESLint for code linting
  • Prettier for code formatting
  • dotenv for environment variable management
  • ts-node-dev for seamless development experience

Installation

  1. Clone the Repository

    git clone https://github.com/Tanzeebul-Tamim/Express-Mongoose-TS-Starter_Pack
  2. Install Dependencies

    npm install
  3. Set Up Environment Variables

    Create a .env file in the root directory and copy the contents of .env.example into it. Update the values as needed.

    cp .env.example .env

Development

Start the development server:

npm run dev

Build

Compile the TypeScript code:

npm run build

Start the production server:

npm run prod

Lint

Run ESLint to check for code issues:

npm run lint

Automatically fix linting issues:

npm run lint:fix

Format

Format your code using Prettier:

npm run format

Project Structure

./project_root
  ├── src
  │   ├── app
  │   │   └── config
  │   │       └── index.ts   # Load environment variables using dotenv from the .env file and export them as configuration options
  │   ├── app.ts             # Express app setup
  │   └── server.ts          # Entry point
  ├── .env.example           # Example environment variables
  ├── .eslintignore          # Specifies files and directories to ignore during ESLint linting
  ├── .eslintrc.json         # ESLint configuration
  ├── .gitignore             # Specifies files and directories to ignore in Git version control
  ├── .prettierrc.json       # Prettier configuration
  ├── package-lock.json      # Records the exact dependency tree generated by npm for a project
  ├── package.json           # NPM scripts, dependencies and dev-dependencies
  └── tsconfig.json          # TypeScript configuration

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

express-mongoose-ts-starter_pack's People

Contributors

tanzeebul-tamim avatar

Stargazers

 avatar

Watchers

 avatar

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.