Skip to content

Instantly share code, notes, and snippets.

@rokkoo
Created February 18, 2019 18:16
Show Gist options
  • Save rokkoo/c76c60c3e2a0daa7bd14a4e980cb3bb1 to your computer and use it in GitHub Desktop.
Save rokkoo/c76c60c3e2a0daa7bd14a4e980cb3bb1 to your computer and use it in GitHub Desktop.
How to start correctly node server
$ npx license mit > LICENSE
$ npx gitignore node
$ npx covgen YOUR_EMAIL_ADDRESS
$ npm init -y
# These four commands do everything that I was doing manually and more, setting up a project for success right from the start.
npx license mit uses the license package to download a license of choice, in this case the MIT license
npx gitignore node uses the gitignore package to automatically download the relevant .gitignore file from GitHub’s repo
npx covgen uses the covgen package to generate the Contributor Covenant and give your project a code of conduct that will be welcoming to all contributors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment