express boilerplate
1.0.0
使用node.js,express.js构建RESTFUL API的模板存储库样板,并通过semelize-cli支持进行续集。该模板包括特定于功能的分支,如果需要,可以合并到您的存储库中。
从模板创建存储库
在项目的根部创建.ENV文件并用值填充它,以供参考检查。
cd <project_name>
cp .env.example .env
npm install
npx sequelize db:migrate
npx sequelize db:seed:all
npm run dev
npm start
导航到http://localhost:4040
npm run format
npm run format:fix
npm run lint
npm run lint:fix
合并分支以实现下面列出的功能
feat/swagger-docsfeat/twilio-SMSfeat/sendgrid-mailfeat/AWS-S3-bucketfeat/socketsfeat/node-cronci/jest-test 如果您在没有分支的情况下创建了存储库,或者您想获得任何特定的功能分支,而无需获得所有分支,则可以通过运行以下命令来获取特定分支:
git remote add template <template_repository_url>
git fetch template <template_repo_branch_name>
git checkout <template_repo_branch_name>
git push origin <template_repo_branch_name>
通过运行上述命令,Specfic分支将推到您的存储库。