Coder Social home page Coder Social logo

sanjaysah101 / expressts-readysetgo Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.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 eslint express express-typescript-boilerplate husky node pino prettier typescript

expressts-readysetgo's Introduction

Hi πŸ‘‹, I'm Sanjay Kumar Sah

A passionate Front End Developer

An image of @sknepali's Holopin badges, which is a link to view their full Holopin profile

sanjaysah101

trophy

_sanjaysah

  • πŸ”­ I’m currently working on Something Big
  • 🌱 I’m currently learning JavaScript, React, Node, Next.js, CSS3
  • πŸ‘― I’m looking to collaborate on Ansopedia
  • πŸ’¬ Ask me about JavaScript, CSS3, HTML, React, Next.js

Connect with me:

_sanjaysah sanjaysah101 sanjaysah101 _sanjaysah sanjaysah sknepali

Languages and Tools:

android css3 git html5 javascript mongodb

sanjaysah101

sanjaysah101

sanjaysah101

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.