GithubHelp home page GithubHelp logo

sanjaysah101 / expressts-readysetgo Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 462 KB

ExpressTS-ReadySetGo is an Express.js and TypeScript boilerplate equipped with ESLint, Prettier, Husky, Jest, Supertest, & Pino is ready to kickstart your backend development.

License: MIT License

JavaScript 24.25% Shell 1.27% TypeScript 74.48%
boilerplate-back-end express express-typescript-boilerplate pino eslint husky node prettier typescript

expressts-readysetgo's Introduction

ExpressTS-ReadySetGo

ExpressTS-ReadySetGo is an Express.js and TypeScript boilerplate equipped with ESLint, Prettier, Husky, Jest, Supertest, and Pino ready to kickstart your backend development.

Features

  • Express.js as the web framework
  • TypeScript for static typing
  • ESLint for linting
  • Prettier for code formatting
  • Husky for managing git hooks
  • Jest for testing
  • Supertest for HTTP assertions
  • Pino for logger

Getting Started

Follow these steps to get your project up and running.

Prerequisites

Make sure you have Node.js and npm installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/sanjaysah101/ExpressTS-ReadySetGo.git
    
  2. Install dependencies:

    cd TypeExpress-Starter
    npm install
    
  3. Usage

    npm run dev
    
  4. Testing

    npm test
    

Contributing

Contributions are welcome! Please read the Contribution Guidelines

  • 🐞 Reporting issues
  • πŸ’‘ Suggesting new features
  • πŸ“š Improving documentation
  • πŸ› Fixing bugs
  • πŸ’» Adding new code

License

This project is licensed under the MIT License. See the License file for details.

expressts-readysetgo's People

Contributors

sanjaysah101 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

expressts-readysetgo's Issues

Automate package name replacement in package.json

Problem

Currently, the name field in the package.json file is static. When a user clones the boilerplate, they have to manually change the name field to their project's name. This can be a bit inconvenient and goes against the principle of a boilerplate, which should be ready to use out of the box.

Proposed Solution

We should automate the process of replacing the name field in the package.json file with the user's input name. This can be achieved by creating a setup script that prompts the user for their project name and automatically replaces the name field in the package.json file.

Here's a basic example of how this could be implemented in Node.js:

const fs = require('fs');
const prompt = require('prompt');

prompt.start();

prompt.get(['name'], function (err, result) {
    if (err) { return onErr(err); }
    let package = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
    package.name = result.name;
    fs.writeFileSync('./package.json', JSON.stringify(package, null, 2));
});

function onErr(err) {
    console.log(err);
    return 1;
}

This script uses the prompt module to ask the user for their project name, then reads the package.json file, replaces the name field with the user’s input, and writes the changes back to the package.json file.

Next Steps
Implement the setup script.
Update the README to include instructions for the setup script.
This will make the boilerplate more user-friendly and ready to use out of the box.

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.