Code Monkey home page Code Monkey logo

harshalslimaye / compose-express-app Goto Github PK

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

Express + TypeScript: A powerful tool for effortlessly initiating and developing TypeScript-powered Express.js apps.

License: MIT License

TypeScript 37.97% JavaScript 62.03%
express express-starter express-typescript express-typescript-boilerplate express-typescript-starter expressjs-typescript node-typescript node-typescript-boilerplate node-typescript-express typescript

compose-express-app's Introduction

Compose Express App

Compose Express App is a TypeScript-powered generator for quickly scaffolding Express.js applications. It provides a streamlined setup with essential tools and configurations to kickstart your Express projects.

Features

  • Express.js Web Application with TypeScript: Scaffold a robust Express.js application using TypeScript for enhanced type safety and modern JavaScript features.
  • Middleware for Handling CORS: Built-in middleware for handling Cross-Origin Resource Sharing (CORS) to secure your API endpoints.
  • Environment Variable Configuration: Integrated dotenv for managing environment variables conveniently, allowing seamless configuration across different environments.
  • Development Server with Automatic Code Reloading: Utilize nodemon for automatic server reloading during development, providing a smooth development experience.
  • Testing Environment with Jest and Supertest: Includes Jest for unit testing and Supertest for testing HTTP requests, ensuring robust and reliable code.
  • HTTP Request Logging with Morgan: Integrated Morgan for logging HTTP requests, helping in debugging and monitoring the application's behavior.
  • Webpack Support: Utilize webpack for bundling TypeScript code into a production-ready bundle, optimizing performance and deployment.

Installation

To use Compose Express App, you can run it directly using npx without installing it globally. Ensure you have Node.js installed on your machine. Run the following command to scaffold a new Express app:

npx compose-express-app my-express-app

Replace my-express-app with the name of your project directory. This command will download and run the latest version of Compose Express App, creating a new Express app with the necessary files and configurations.

Scripts

  • npm run build: Build the TypeScript code using webpack for production.
  • npm run dev: Run webpack in watch mode for development.
  • npm run serve: Start the server using nodemon for automatic reloading.
  • npm start: Concurrently run development mode and server for a seamless workflow.
  • npm run coverage: Run Jest with coverage reporting.
  • npm test: Run Jest in watch mode for continuous testing.

Contributing

Contributions are welcome! Fork the repository, make your changes, and submit a pull request. Please follow the code style and include tests for new features or bug fixes.

License

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

Author

compose-express-app's People

Contributors

harshalslimaye 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.