Skip to content

Commit

Permalink
Features/lamnv/ahamove integration (#59)
Browse files Browse the repository at this point in the history
* feat: get ahamove token, estimate fee, webhook and ws api

* fix: update migrations and update ahamove api

* fix: update script migrations

* fix: update on wheel api

* update logic handling ahamove status

* remove unused importing

---------

Co-authored-by: lamnv <[email protected]>
Co-authored-by: NHT <[email protected]>
Co-authored-by: nfesta2023 <[email protected]>
  • Loading branch information
4 people authored Feb 24, 2024
1 parent 119f85f commit 14bad8c
Show file tree
Hide file tree
Showing 24 changed files with 1,350 additions and 41 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "all",
"printWidth": 200
}
26 changes: 3 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
</p>

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->

## Description

Expand All @@ -33,6 +10,9 @@ $ yarn install
```

## Running the app
$ export BACKEND_ENV=dev
$ npm run typeorm migration:run -- -d ./src/migration.config.ts


```bash
# development
Expand Down
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,28 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js",
"typeorm:sync": "npm run typeorm schema:sync"
},
"dependencies": {
"@hapi/joi": "^17.1.1",
"@nestjs/axios": "^3.0.1",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.0.0",
"@nestjs/microservices": "^10.2.10",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/platform-socket.io": "^10.3.3",
"@nestjs/typeorm": "^10.0.1",
"@nestjs/websockets": "^10.3.3",
"axios": "^1.6.2",
"flagsmith-nodejs": "^3.2.0",
"joi": "^17.12.1",
"mysql2": "^3.6.5",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1",
"socket.io": "^4.7.4",
"typeorm": "^0.3.17"
},
"devDependencies": {
Expand Down Expand Up @@ -74,4 +81,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
}
7 changes: 6 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { SearchModule } from './feature/search/search.module';
import { CommonModule } from './feature/common/common.module';
import { CartModule } from './feature/cart/cart.module';
import { RatingAndReviewModule } from './feature/rating-and-review/rating-and-review.module';
import { AhamoveModule } from './dependency/ahamove/ahamove.module';
import { OrderModule } from './feature/order/order.module';

@Module({
imports: [
Expand All @@ -30,10 +32,11 @@ import { RatingAndReviewModule } from './feature/rating-and-review/rating-and-re
username: configService.get<string>('database.username'),
password: configService.get<string>('database.password'),
database: configService.get<string>('database.name'),
entities: [],
entities: [__dirname + '/entity/*.entity{.ts,.js}'],
synchronize: false,
autoLoadEntities: true,
}),
// useFactory: (configService: ConfigService) => ormConfig(),
inject: [ConfigService],
}),
FoodModule,
Expand All @@ -45,6 +48,8 @@ import { RatingAndReviewModule } from './feature/rating-and-review/rating-and-re
CommonModule,
CartModule,
RatingAndReviewModule,
AhamoveModule,
OrderModule,
],
controllers: [AppController],
providers: [AppService],
Expand Down
Loading

0 comments on commit 14bad8c

Please sign in to comment.