It's useful when starting a simple npm project which doesn't require any config, db, etc...
Please note that version 17 of Standard.JS is still a pre-release version
- Version 17 of Standard.JS based on ESLint 8.
- Don't need to configure babel parser to use experimental JavaScript (ES Next) features
This major release fully focuses on getting in sync with the wider ESLint ecosystem and doesn't in itself introduce any new rules or features.
This pre-release exists to test out the ESLint 8 related changes and discover possible backwards incompatible changes that comes with it and mitigate unintended such before a stable release.
When you upgrade, consider running standard --fix to automatically format your code to match the current set of rules.
Click here to see all details
- standard integration
- config utility
- autoload routes, plugins, api routes
- @fastify/sensible for some useful utilities to your Fastify instance
- tap for testing
- @fastify/swagger for api documentation
- @fastify/helmet for secure your apps by setting various HTTP headers (preconfigured for swagger)
- @fastify/redis for response caching
- @fastify/jwt for simple token authorization
- @fastify/cors
- codecov and coveralls integration
The way that you can use it depends on whether you want to keep repo history.
Starting with clean repository
Keep only part of the commit history
Keep existing repo history, only change the GIT remote to the new one
-
Clone this template
git clone https://github.com/wmitrus/basic_node-starter-standard-17.git Your_New_Project_Name
-
Enter to newly created priject directory
cd Your_New_Project_Name
-
Remove existing .git repository
rm -rf .git
-
Initialize new clean repository
Notice: Be sure to create the correct name of default branch For example: If you are going to use
GitHub
orGitLab
then your defualt branch name should bemain
git init -b main
-
Make initial commit
git add . git commit -m "Initial commit"
-
Add your new own repository
git remote add origin YOUR_GIT_REPOSITORY_URL
-
Push this repository to your remote
git push --set-upstream origin main
-
Clone this template
git clone https://github.com/wmitrus/basic_node-starter-standard-17.git Your_New_Project_Name
-
Enter to newly created project directory
cd Your_New_Project_Name
-
Remove existing repository
git remote remove origin
-
Rebase history from chosen commit run gitk tool and choose commit from which the repo should be rebased.
git checkout --orphan temp COMMIT_ID git commit -m "Truncated history" git rebase --onto temp COMMIT_ID main git branch -D temp
-
Add your new own repository
git remote add origin YOUR_GIT_REPOSITORY_URL
-
Push this repository to your remote
git push --set-upstream origin main
-
Clone this template
git clone https://github.com/wmitrus/basic_node-starter-standard-17.git Your_New_Project_Name
-
Enter to newly created project directory
cd Your_New_Project_Name
-
Remove existing repository
git remote remove origin
-
Add your new own repository
git remote add origin YOUR_GIT_REPOSITORY_URL
-
Push this repository to your remote
git push --set-upstream origin main