A basic starter template for Node.js projects, including ESLint, Prettier, Express.js, and local VS Code snippets.
- ✅ Node.js (ES Modules)
- ✅ Express.js setup included
- ✅ ESLint 9 with Flat Config
- ✅ Prettier configured to match ESLint rules
- ✅ Local VS Code snippets (
.vscode/snippets.code-snippets) - ✅ Handy scripts for linting and formatting
git clone https://github.com/Charlosus/node-basic-starter.git my-new-project
cd my-new-project
rm -rf .git
npm installnpm run lint # run ESLint check
npm run lint:fix # auto-fix ESLint issues
npm run format # format code using PrettierDefined in .vscode/snippets.code-snippets:
log→console.log('')expapp→ basic Express app setupexproute→ Express route (GET,POST, etc.)class→ ES6 class skeletontryc→ try/catch block- and more...
import express from 'express';
const app = express();
app.use(express.json());
app.get('/', (req, res) => {
res.send('Hello from Express!');
});
app.listen(3000, () => {
console.log('Server running on http://localhost:3000');
});Created by Charlosus
Click "Use this template" to start new projects quickly ⚡