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分支將推到您的存儲庫。