Palas is a Node.js project scaffolding generator based on Koa.js. With the API, create your project super fast.
- Docker
- CI(Circle CI)
- ORM(Sequelize.js)
- gRPC support
- ESLint
yarn add -g palas
palas create <projectPath>
cd <projectPath>
yarn start
Palas will install latest version of dependencies.
Some configuration will be collected with a interactive command line. But if you specified configuration in cli options, then the interactive command line will not appear.
Add gRPC support in project. This will install grpc
, @grpc/proto-loader
dependencies.
Add docker support. This will generate Dockerfile
, docker-compose.yml
and entrypoint.sh
.
Use eslint to lint code style.
eslint use airbnb-base
, and use node-security
to ensure code scurity.
project
|-.gitignore
|-.eslintrc
|-.eslint
|-.env
|-docker-compose.yml
|-Dockerfile
|-entrypoint.sh
|-package.json
|-server.js
|-yarn.lock
|-app
|-grpc
|-controllers
|-protos
|_index.js
|-http
|-routes
|-index.js
|-services
|-logger.js
|-index.js
|-.circle
|-config.yml
|-config
|-app.config.js
|-helpers
|-env.js
Because of this scaffolding generator support both gRPC and HTTP client.