This is BE for project of IE104.
- Bun
- Elysia
- Drizzle Orm
- Amazon Web Service (EC2, VPCs, RDS, Route 53, S3)
- Bun version >= v1.0.x
- Clone the repo
git clone git@github.com:QuangPhamvt/ie307-back-end.git- Install yarn packages
- We use Bun for Javascript runtime
$ cd ./ie104-front-end
$ bun install- Config environment
- Setup Client
file .env in folder client
DATABASE_URL="..." #connect to database
- Husky setup
bun prepare- Run Client
$ cd ./ie307-front-end
$ bun start- Feature
- Package using
"dependencies": {
"@elysiajs/jwt": "^0.7.0",
"@elysiajs/swagger": "^0.7.3",
"@planetscale/database": "^1.11.0",
"dotenv": "^16.3.1",
"drizzle-orm": "^0.28.6",
"elysia": "latest",
"mysql2": "^3.6.2"
},
"devDependencies": {
"@commitlint/cli": "^17.8.0",
"@commitlint/config-conventional": "^17.8.0",
"bun-types": "latest",
"drizzle-kit": "^0.19.13",
"husky": "^8.0.0",
"lint-staged": "^15.0.1",
"prettier": "3.0.3"
},
link:
-
Role commit
{type}: {subject}- type: build | chore | ci | docs | feat | fix | perf | refactor | revert | style | test
- subject: 'Write a short, imperative tense description of the change'
-
Automatic: check lint and format pre-commit
-
Example:
git commit -m "{type}: {subject}"Description
| Types | Description |
|---|---|
| feat | A new feature |
| fix | A bug fix |
| docs | Documentation only changes |
| style | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) |
| refactor | A code change that neither fixes a bug nor adds a feature |
| perf | A code change that improves performance |
| test | Adding missing tests or correcting existing tests |
| build | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) |
| ci | 'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) |
| chore | Other changes that don't modify src or test files |
| revert | Reverts a previous commit |