There are many es6 starter kits out there with express. Most developers just roll their own from the ground up, however starter kits can help developers save time to get up and running. This minimalist starter kit can help you get started with just express and es6, and you add on the rest!
- It uses babel-watch. (https://github.com/kmagiera/babel-watch)
- It uses the babel-preset-env and babel-polyfill. (https://babeljs.io/)
- Clone the express es6 starter kit.
git clone https://github.com/reyarqueza/express-es6-starter-kit.git
- Rename the directory to [your-project-directory]
mv express-es6-starter-kit [your-project-directory]
- Initialize git to your own repository.
cd [your-project-directory]
rm README.md && rm -rf .git && git init
- Update package.json with the following command to replace express-es6-starter-kit with your own project information.
npm init
- Install it as your own!
npm install
- To run in dev and transpile in memory for faster reload times during development.
npm run dev
- To run in prod to pre-transpile files, and serve transpiled files (fastest).
npm run build
npm start