Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

add gateway to dev branch #30

Merged
merged 218 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
7f685fc
feat(gateway): create the base of the gateway
Anatole-Godard Jul 14, 2023
d09ccf1
feat(user controller): create userController and user grpc client ser…
Anatole-Godard Jul 18, 2023
c3629f6
feat(app): add package-lock.json
Anatole-Godard Jul 18, 2023
44ea20d
feat(README): update Getting started
Anatole-Godard Jul 18, 2023
4169c8c
Merge remote-tracking branch 'origin/dev' into gateway
Anatole-Godard Jul 24, 2023
36344d2
feat(user): create the user controller
Anatole-Godard Jul 24, 2023
8185000
feat(order): create the order controller
Anatole-Godard Jul 24, 2023
73375cc
feat(gateway config): add dependency
Anatole-Godard Aug 2, 2023
f580c39
feat(gateway config): rename path
Anatole-Godard Aug 2, 2023
78432a2
feat(gateway): rename packages
Anatole-Godard Aug 2, 2023
9633681
feat(gateway): add product controller
Anatole-Godard Aug 2, 2023
214cd18
feat(gateway): add metric controller
Anatole-Godard Aug 2, 2023
0ba74ba
feat(gateway): add log controller
Anatole-Godard Aug 2, 2023
df7efae
feat(gateway): add new controller to the server.ts
Anatole-Godard Aug 2, 2023
2fd7314
Merge branch 'dev' into gateway
Anatole-Godard Aug 3, 2023
c5e9bce
feat(gateway): create the deliveryPersonController
Anatole-Godard Aug 3, 2023
6520c30
feat(gateway): rename controller files
Anatole-Godard Aug 3, 2023
59f615e
feat(gateway): create the promotions controller
Anatole-Godard Aug 3, 2023
ffb0fbe
Merge branch 'dev' into gateway
Anatole-Godard Aug 10, 2023
305db38
feat(gateway): create the stocks controllers
Anatole-Godard Aug 11, 2023
1b5cce8
feat(gateway): replace controller methods by the express router
Anatole-Godard Aug 11, 2023
6d820fb
feat(gateway): add tags for the swagger
Anatole-Godard Aug 12, 2023
7154ccb
feat(gateway): add tags for the swagger
Anatole-Godard Aug 12, 2023
fb1f45b
feat(gateway): add services port in the dot env and create dockerfile
Anatole-Godard Aug 13, 2023
f7959e1
feat(gateway): add docker compose to start all services
Anatole-Godard Aug 13, 2023
a54aede
feat(gateway): add the basket controller
Anatole-Godard Aug 15, 2023
b128aa0
feat(gateway): add a logger
Anatole-Godard Aug 15, 2023
d85d3ea
feat(gateway): move the swagger lib
Anatole-Godard Aug 15, 2023
d999c2c
feat(global): create docker compose with delivery and the gateway
Anatole-Godard Aug 15, 2023
6bb57a0
fix(order): rename path
Anatole-Godard Aug 15, 2023
3ade9e6
feat(global): add order service to the docker compose
Anatole-Godard Aug 15, 2023
3ecc98a
feat(gateway): in case of error return a 500 status
Anatole-Godard Aug 15, 2023
fd9d41b
feat(global): add product service to the docker compose
Anatole-Godard Aug 15, 2023
ea8d5e0
feat(global): add promotion service to the docker compose
Anatole-Godard Aug 15, 2023
7c1fc5b
feat(global): add stock service to the docker compose
Anatole-Godard Aug 15, 2023
835ebc3
Merge branch 'dev' into gateway
Anatole-Godard Aug 16, 2023
f1f5342
Merge remote-tracking branch 'origin/dev' into gateway
Anatole-Godard Aug 16, 2023
1e64995
feat(global): add env.docker
Anatole-Godard Aug 19, 2023
bd51a88
Merge branch 'dev' into gateway
Anatole-Godard Aug 19, 2023
aff93ec
feat(basket): update gitignore
Anatole-Godard Aug 19, 2023
4deb79c
feat(global): add log service to the docker compose
Anatole-Godard Aug 19, 2023
974316c
feat(gateway): create the base of the gateway
Anatole-Godard Jul 14, 2023
3b20b4b
feat(user controller): create userController and user grpc client ser…
Anatole-Godard Jul 18, 2023
93fe14d
feat(app): add package-lock.json
Anatole-Godard Jul 18, 2023
a650ad6
feat(README): update Getting started
Anatole-Godard Jul 18, 2023
c879f0d
feat(user): create the user controller
Anatole-Godard Jul 24, 2023
77ca419
feat(order): create the order controller
Anatole-Godard Jul 24, 2023
f671cb9
feat(gateway config): add dependency
Anatole-Godard Aug 2, 2023
ff0a3a1
feat(gateway config): rename path
Anatole-Godard Aug 2, 2023
dcc8fa7
feat(gateway): rename packages
Anatole-Godard Aug 2, 2023
cfc99c1
feat(gateway): add product controller
Anatole-Godard Aug 2, 2023
df62f34
feat(gateway): add metric controller
Anatole-Godard Aug 2, 2023
8bf3fdb
feat(gateway): add log controller
Anatole-Godard Aug 2, 2023
b7d51ad
feat(gateway): add new controller to the server.ts
Anatole-Godard Aug 2, 2023
d4bfb39
feat(gateway): create the deliveryPersonController
Anatole-Godard Aug 3, 2023
99cabd2
feat(gateway): rename controller files
Anatole-Godard Aug 3, 2023
4be813b
feat(gateway): create the promotions controller
Anatole-Godard Aug 3, 2023
2a0d4b5
feat(gateway): create the stocks controllers
Anatole-Godard Aug 11, 2023
1515e25
feat(gateway): replace controller methods by the express router
Anatole-Godard Aug 11, 2023
2b633e6
feat(gateway): add tags for the swagger
Anatole-Godard Aug 12, 2023
284d5c1
feat(gateway): add tags for the swagger
Anatole-Godard Aug 12, 2023
5ffa07d
feat(gateway): add services port in the dot env and create dockerfile
Anatole-Godard Aug 13, 2023
e19df52
feat(gateway): add docker compose to start all services
Anatole-Godard Aug 13, 2023
c71064b
feat(gateway): add the basket controller
Anatole-Godard Aug 15, 2023
4bae7ef
feat(gateway): add a logger
Anatole-Godard Aug 15, 2023
e1d9efd
feat(gateway): move the swagger lib
Anatole-Godard Aug 15, 2023
a43e71d
feat(global): create docker compose with delivery and the gateway
Anatole-Godard Aug 15, 2023
8cb85aa
fix(order): rename path
Anatole-Godard Aug 15, 2023
7705863
feat(global): add order service to the docker compose
Anatole-Godard Aug 15, 2023
383c6aa
feat(gateway): in case of error return a 500 status
Anatole-Godard Aug 15, 2023
5933e1b
feat(global): add product service to the docker compose
Anatole-Godard Aug 15, 2023
7fab579
feat(global): add promotion service to the docker compose
Anatole-Godard Aug 15, 2023
7db69ae
feat(global): add stock service to the docker compose
Anatole-Godard Aug 15, 2023
2e69324
feat(global): add env.docker
Anatole-Godard Aug 19, 2023
3ca9a10
feat(basket): update gitignore
Anatole-Godard Aug 19, 2023
345933b
feat(global): add log service to the docker compose
Anatole-Godard Aug 19, 2023
8f3f9b7
Merge branch 'gateway' of https://github.com/floriaaan/goodfood into …
floriaaan Aug 19, 2023
2c88539
feat(global): add user service to the docker compose
Anatole-Godard Aug 19, 2023
aa0a2b0
Merge remote-tracking branch 'origin/gateway' into gateway
Anatole-Godard Aug 19, 2023
186723a
feat(global): add payment service to the docker compose
Anatole-Godard Aug 20, 2023
89176b6
feat(global): add restaurant service to the docker compose
Anatole-Godard Aug 20, 2023
5b3ac71
feat(global): add restaurant service to the docker compose
Anatole-Godard Aug 20, 2023
0c3a75f
Merge branch 'gateway' of github.com:floriaaan/goodfood into gateway
PierreLbg Aug 20, 2023
6048776
feat(gateway): add restaurant service to the server.ts
Anatole-Godard Aug 20, 2023
b062d68
Merge branch 'gateway' of github.com:floriaaan/goodfood into gateway
PierreLbg Aug 20, 2023
b17ebac
feat(gateway): update .env.example
Anatole-Godard Aug 20, 2023
020b3cc
Merge branch 'gateway' of github.com:floriaaan/goodfood into gateway
PierreLbg Aug 20, 2023
d4fc363
feat(user): fix delete user condition
Anatole-Godard Aug 20, 2023
728dd7c
feat(gateway): fix register issue
Anatole-Godard Aug 20, 2023
89b7c06
Merge branch 'gateway' of github.com:floriaaan/goodfood into gateway
PierreLbg Aug 20, 2023
22d7847
fix(docker): add npm lockfiles to ensure docker compose build
floriaaan Aug 20, 2023
07752cb
feat(middleware): add auth middleware
floriaaan Aug 20, 2023
64168ec
Revert "feat(middleware): add auth middleware"
floriaaan Aug 20, 2023
c6a082a
feat(global): add reporting service
Anatole-Godard Aug 20, 2023
40df640
fix(git): fix git issues
floriaaan Aug 20, 2023
7ba4969
fix(git): fix git issues 2
floriaaan Aug 20, 2023
ce90114
Merge branch 'gateway' of github.com:floriaaan/goodfood into gateway
PierreLbg Aug 20, 2023
decc318
feat(gateway): add mainAddress routes in the server.ts
Anatole-Godard Aug 21, 2023
77b0bdc
feat(gateway): add basket schema in the swagger
Anatole-Godard Aug 21, 2023
206812f
feat(gateway): add delivery schema in the swagger
Anatole-Godard Aug 21, 2023
24f1191
feat(gateway): remove useless basket schema in the swagger
Anatole-Godard Aug 21, 2023
060abbd
feat(gateway): add type on basket route param
Anatole-Godard Aug 21, 2023
44ba61f
feat(gateway): finish metric controller
Anatole-Godard Aug 21, 2023
83b37af
feat(gateway): add order schema in the swagger
Anatole-Godard Aug 22, 2023
0b71b8d
feat(gateway): add product schema in the swagger
Anatole-Godard Aug 22, 2023
f2baf06
feat(gateway): update basket schema in the swagger
Anatole-Godard Aug 22, 2023
d733216
feat(gateway): add promotion schema in the swagger
Anatole-Godard Aug 22, 2023
ca0cd2b
feat(gateway): add restaurant schema in the swagger
Anatole-Godard Aug 22, 2023
4554398
feat(gateway): add stock schema in the swagger
Anatole-Godard Aug 22, 2023
db3a6ec
feat(gateway): add user schema in the swagger
Anatole-Godard Aug 22, 2023
10f290e
feat(user): remove useless documentation
Anatole-Godard Aug 22, 2023
c27638d
feat(user): add return handler
Anatole-Godard Aug 23, 2023
2360995
feat(gateway): add linter and prettier
Anatole-Godard Aug 23, 2023
de03ed1
fix(gateway): fix create order route
Anatole-Godard Aug 24, 2023
4395115
Merge branch 'gateway' into gateway-token
Anatole-Godard Aug 24, 2023
3c5ae66
feat(gateway): add package lock
Anatole-Godard Aug 24, 2023
dad3436
feat(basket): add auth checkguards in routes
floriaaan Aug 24, 2023
f892ca2
feat(delivery): add auth checkguards in routes
floriaaan Aug 24, 2023
e370810
feat(gateway): add authorisation checks in the user controller
Anatole-Godard Aug 24, 2023
9de6d9f
feat(log): add auth checkguards in routes
floriaaan Aug 24, 2023
5094095
Merge remote-tracking branch 'origin/gateway-token' into gateway-token
Anatole-Godard Aug 24, 2023
9ed37d9
Merge branch 'gateway-token' of https://github.com/floriaaan/goodfood…
floriaaan Aug 24, 2023
9de8571
feat(gateway): remove useless condition in user controller
Anatole-Godard Aug 24, 2023
41135ba
feat(metric): add auth checkguards in routes
floriaaan Aug 24, 2023
a326c14
Merge branch 'gateway-token' of https://github.com/floriaaan/goodfood…
floriaaan Aug 24, 2023
a4a1f81
feat(order): add auth checkguards in routes
floriaaan Aug 25, 2023
65783e9
feat(payment): add auth checkguards in routes
floriaaan Aug 25, 2023
00ba6e5
fix(controller): revert -> change req.params to req.query
floriaaan Aug 25, 2023
71e189b
feat(product): add auth checkguards in routes
floriaaan Aug 25, 2023
98a2fc1
feat(promotion): add auth checkguards in routes
floriaaan Aug 25, 2023
d5e9b9a
ref(withCheck): add support for multiple roles
floriaaan Aug 25, 2023
1e0fef3
feat(restaurant): add auth checkguards in routes
floriaaan Aug 25, 2023
45a003d
feat(gateway): remove useless swagger doc
Anatole-Godard Aug 25, 2023
39e616a
feat(gateway): clean the swagger
Anatole-Godard Aug 25, 2023
667dd80
Merge remote-tracking branch 'origin/gateway-token' into gateway-token
Anatole-Godard Aug 25, 2023
5d32c4a
feat(gateway): clean the swagger in promotion and restaurant controller
Anatole-Godard Aug 25, 2023
358b3fd
feat(gateway): fix the middleware and user controller
Anatole-Godard Aug 25, 2023
4cc735f
Merge branch 'gateway' of github.com:floriaaan/goodfood into gateway
PierreLbg Aug 25, 2023
816382d
Entrypoint pour restaurant
PierreLbg Aug 26, 2023
6b9111e
feat(stock): add auth checkguards in routes
floriaaan Aug 26, 2023
c446dad
Add entrypoint for all service with prisma
PierreLbg Aug 26, 2023
a75efb5
Merge branch 'gateway' into gateway-token
Anatole-Godard Aug 26, 2023
22cceeb
Merge branch 'dev' into gateway-token
Anatole-Godard Aug 26, 2023
43d2353
Merge branch 'dev' into gateway
Anatole-Godard Aug 26, 2023
26d68c8
feat(gateway): rename rabitmq service
Anatole-Godard Aug 26, 2023
c744f91
feat(product service): rename get product list
Anatole-Godard Aug 26, 2023
29ff6cc
feat(restaurant): rename rename handler
Anatole-Godard Aug 26, 2023
1c7b695
feat(order controller gateway): fix status enum
Anatole-Godard Aug 26, 2023
e8ae646
feat(restaurant service): fix the usage of a geolib method
Anatole-Godard Aug 26, 2023
312c3db
feat(error): fix notification syntax error
Anatole-Godard Aug 26, 2023
87bd492
feat(gateway): add the notification controller
Anatole-Godard Aug 26, 2023
0f50015
feat(gateway): run format script
Anatole-Godard Aug 26, 2023
dc659d3
feat(gateway): reorder swagger tags
Anatole-Godard Aug 27, 2023
e29edb4
Merge branch 'gateway-token' of https://github.com/floriaaan/goodfood…
floriaaan Aug 27, 2023
6debd41
feat(mainAddress): add auth checkguards in routes
floriaaan Aug 27, 2023
665ba3c
feat(gateway): fix swagger comments
Anatole-Godard Aug 27, 2023
0c29c54
Create channel for notification
PierreLbg Aug 27, 2023
866b7fc
Merge branch 'gateway' into gateway-token
Anatole-Godard Aug 27, 2023
128cd85
feat(gateway): map port event broker
Anatole-Godard Aug 27, 2023
e7c6eb9
Update create product
PierreLbg Aug 27, 2023
0ce240a
Merge remote-tracking branch 'origin/gateway-token' into gateway-token
PierreLbg Aug 27, 2023
3588cc8
fix(product): fix create product method
Anatole-Godard Aug 27, 2023
a95dd8a
fix(product): fix create and update product method
Anatole-Godard Aug 27, 2023
f2792bf
Fix parseContext of middleware log
PierreLbg Aug 27, 2023
c55084c
fix(product): fix list method
Anatole-Godard Aug 27, 2023
4bda2ea
feat(gateway): change roles acces
Anatole-Godard Aug 27, 2023
4a9a637
feat(restaurant): add userIds in restaurant service
floriaaan Aug 27, 2023
f333a76
fix(build-proto): change grpc-out param
floriaaan Aug 27, 2023
e031fe8
ref(gateway/restaurant): add support for userIds
floriaaan Aug 27, 2023
b7bfe5a
ref(gateway/stock): add protection for ACCOUNTANT role
floriaaan Aug 27, 2023
cdf0629
doc: update readme files
floriaaan Aug 27, 2023
f39bf62
doc(readmes): update readme
floriaaan Aug 27, 2023
3ddb8e2
fix(product/types): change nutriscore and price types
floriaaan Aug 28, 2023
1977b32
feat(gateway): map external docker postgres ports
Anatole-Godard Aug 28, 2023
af62d36
fix(gateway): fix syntax error in stock controller
Anatole-Godard Aug 28, 2023
9aefc5f
feat(gateway): add supplierId in stock post/put
Anatole-Godard Aug 28, 2023
ccac500
feat(gateway): generate swagger
Anatole-Godard Aug 28, 2023
dee89fa
fix(gateway/payment): change stripe create checkout request body
floriaaan Aug 28, 2023
f8127ed
feat(lockfiles): add lockfiles
floriaaan Aug 28, 2023
517d0f5
feat(swagger): add swagger
floriaaan Aug 28, 2023
2d9e356
Merge branch 'gateway-token' of https://github.com/floriaaan/goodfood…
floriaaan Aug 28, 2023
1d09776
fix(gateway/delivery): change order of handlers
floriaaan Aug 28, 2023
bb832ac
Update post image
PierreLbg Aug 28, 2023
f92167a
feat(gateway): add post order tmp route
Anatole-Godard Aug 28, 2023
7a7368c
feat(gateway): add post order route
Anatole-Godard Aug 28, 2023
34dc4f9
feat(gateway): add post order route
Anatole-Godard Aug 28, 2023
c3f20af
Merge remote-tracking branch 'origin/gateway-token' into gateway-token
Anatole-Godard Aug 28, 2023
3850447
fix(build proto): fix bash script
Anatole-Godard Aug 28, 2023
1e84749
fix(gateway/delivery): remove delivery status in create delivery
floriaaan Aug 28, 2023
9cec60d
fix(gateway): fix swagger syntax error
Anatole-Godard Aug 28, 2023
16d45bb
Merge remote-tracking branch 'origin/gateway-token' into gateway-token
Anatole-Godard Aug 28, 2023
45a37b7
feat(user): user service log errors
Anatole-Godard Aug 28, 2023
b00fa14
feat(user): remove useless import
Anatole-Godard Aug 28, 2023
d27dc99
fix(reporting): change entrypoint
floriaaan Aug 28, 2023
02484b7
feat(user): fix update role user
Anatole-Godard Aug 28, 2023
c3829aa
feat(node services): add minify option in the build
Anatole-Godard Aug 28, 2023
218afc2
feat(roles): rename roles
Anatole-Godard Aug 28, 2023
2724b99
feat(delivery service and gateway): add user_id to the delivery person
Anatole-Godard Aug 28, 2023
93ba09e
fix(reporting): expose 8080 and change pushmetric request type
floriaaan Aug 28, 2023
3463c28
Merge branch 'gateway-token' of https://github.com/floriaaan/goodfood…
floriaaan Aug 28, 2023
746e813
feat(delivery service): add migration
Anatole-Godard Aug 28, 2023
13ddfe9
feat(delivery service): add get delivery person by user
Anatole-Godard Aug 29, 2023
518f5b6
fix(docker): add restart always for gateway
floriaaan Aug 29, 2023
e4fd5d5
ref(gateway/user): match codestyle
floriaaan Aug 29, 2023
06ad8e2
fix(docker): add restart unless-stopped
floriaaan Aug 29, 2023
e25b2e0
fix(gateway): change order of handlers in delivery person
floriaaan Aug 29, 2023
7c1ee25
fix(gateway/restaurant): fix delete
floriaaan Aug 29, 2023
6b73da7
fix(gateway/promotion): fix method support
floriaaan Aug 29, 2023
2cbd398
Merge pull request #18 from floriaaan/gateway-token
floriaaan Aug 29, 2023
689a6b8
fix(gateway/promotion): fix proto message for put
floriaaan Aug 29, 2023
f2c04db
ref(gateway/promotion): remove unused var
floriaaan Aug 29, 2023
34cab17
feat(user): rename default admin
Anatole-Godard Aug 30, 2023
b42495f
Add script.sh for product and update insert image
PierreLbg Sep 22, 2023
3eabb85
Add deploy script and update k8s and terraform files
PierreLbg Sep 22, 2023
72d2e2c
fix(git): add nextjs cache in general gitignore
floriaaan Oct 18, 2023
9ce1c16
ref(bruno): migrate api requests to bruno
floriaaan Oct 18, 2023
8380578
feat(ci): add gateway docker image
floriaaan Oct 18, 2023
cb8658d
fix(ci): add build proto
floriaaan Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Gateway CI/CD

on:
push:
branches: [gateway]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"
cache-dependency-path: services/gateway/pnpm-lock.yaml
- name: Install dependencies
run: |
cd ./services/gateway
pnpm install --frozen-lockfile
- name: Build protos
run: |
cd ./services/gateway
pnpm build:proto
- name: Build
run: |
cd ./services/gateway
pnpm build

# test:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - uses: actions/checkout@master
# - uses: pnpm/action-setup@v2
# with:
# version: latest
# - uses: actions/setup-node@v3
# with:
# node-version: "18.x"
# cache: "pnpm"
# cache-dependency-path: services/gateway/pnpm-lock.yaml
# - name: Install dependencies
# run: |
# cd ./services/gateway
# pnpm install --frozen-lockfile
# - name: Execute tests
# run: |
# cd ./services/gateway
# pnpm test

publish:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./services/
file: ./services/gateway/Dockerfile
push: true
tags: floriaaan/goodfood-gateway:latest
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ terraform.rc
!.vscode/extensions.json
!.vscode/*.code-snippets

### IDEA ###
.idea

# Local History for Visual Studio Code
.history/

Expand Down Expand Up @@ -83,3 +86,7 @@ terraform.rc

# expo cache files
/apps/mobile/.expo

# next.js
/apps/web/.next
/apps/web/next-env.d.ts
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ a high volume of concurrent users, up to several thousand.

| Service | Port | Language | Database | Status | Assignee |
| ------------ | ----- | ----------- | ---------- | ------ | --------------- |
| Gateway | 50000 | Go | ❌ | | @Anatole-Godard |
| Gateway | 50000 | Go | ❌ | ⚠️ | @Anatole-Godard |
| User (auth) | 50001 | Go | PostgreSQL | ⚠️ | @Anatole-Godard |
| Basket | 50002 | NodeJS (ts) | Redis | ⚠️ | @Anatole-Godard |
| Payment | 50003 | NodeJS (ts) | PostgreSQL | ✅ | @floriaaan |
| Product | 50004 | NodeJS (ts) | PostgreSQL | | @PierreLbg |
| Restaurant | 50005 | NodeJS (ts) | PostgreSQL | | @floriaaan |
| Promotion | 50006 | NodeJS (ts) | PostgreSQL | | @PierreLbg |
| Product | 50004 | NodeJS (ts) | PostgreSQL | ⚠️ | @PierreLbg |
| Restaurant | 50005 | NodeJS (ts) | PostgreSQL | | @floriaaan |
| Promotion | 50006 | NodeJS (ts) | PostgreSQL | ⚠️ | @PierreLbg |
| Order | 50007 | NodeJS (ts) | PostgreSQL | ✅ | @floriaaan |
| Delivery | 50008 | NodeJS (ts) | PostgreSQL | ✅ | @floriaaan |
| Stock | 50009 | NodeJS (ts) | PostgreSQL | ⚠️ | @floriaaan |
Expand Down Expand Up @@ -67,6 +67,20 @@ The file hierarchy for this project is as follows:

## Installation & usage

### Docker

You can use Docker to run the microservices and the gateway.

To do so, you will need to have Docker installed on your system.

You can then run the following command to start the microservices and the gateway:

```shell
docker-compose up -f services/docker-compose.yml -d --build
```

### Development

Each service has its own README.md file with installation and usage instructions.

Please refer to the README.md file of the service you want to install and use.
Expand Down
11 changes: 11 additions & 0 deletions requests/allergen/delete allergen :id.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: delete allergen by id
type: http
seq: 2
}

delete {
url: {{baseUrl}}/api/allergen/:id
body: none
auth: none
}
21 changes: 21 additions & 0 deletions requests/allergen/post allergen.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: create allergen
type: http
seq: 1
}

post {
url: {{baseUrl}}/api/allergen
body: json
auth: none
}

headers {
Content-Type: application/json
}

body:json {
{
"label": "<string>"
}
}
11 changes: 11 additions & 0 deletions requests/basket/get basket.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: get basket
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/basket/
body: none
auth: none
}
22 changes: 22 additions & 0 deletions requests/basket/post basket.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
meta {
name: create basket
type: http
seq: 2
}

post {
url: {{baseUrl}}/api/basket
body: json
auth: none
}

headers {
Content-Type: application/json
}

body:json {
{
"productId": "<string>",
"restaurantId": "<string>"
}
}
11 changes: 11 additions & 0 deletions requests/basket/post reset.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: reset basket
type: http
seq: 1
}

post {
url: {{baseUrl}}/api/basket/reset
body: none
auth: none
}
21 changes: 21 additions & 0 deletions requests/basket/put change restaurant.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: change selected restaurant
type: http
seq: 1
}

put {
url: {{baseUrl}}/api/basket/restaurant
body: json
auth: none
}

headers {
Content-Type: application/json
}

body:json {
{
"restaurantId": "<string>"
}
}
22 changes: 22 additions & 0 deletions requests/basket/put remove product.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
meta {
name: remove product from basket
type: http
seq: 1
}

put {
url: {{baseUrl}}/api/basket/remove-product
body: json
auth: none
}

headers {
Content-Type: application/json
}

body:json {
{
"productId": "<string>",
"restaurantId": "<string>"
}
}
5 changes: 5 additions & 0 deletions requests/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": "1",
"name": "Goodfood",
"type": "collection"
}
11 changes: 11 additions & 0 deletions requests/category/delete category :id.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: delete category by id
type: http
seq: 3
}

delete {
url: {{baseUrl}}/api/category/:id
body: none
auth: none
}
23 changes: 23 additions & 0 deletions requests/category/post category.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: create category
type: http
seq: 2
}

post {
url: {{baseUrl}}/api/category
body: json
auth: none
}

headers {
Content-Type: application/json
}

body:json {
{
"label": "<string>",
"icon": "<string>",
"hexaColor": "<string>"
}
}
11 changes: 11 additions & 0 deletions requests/delivery-person/delete delivery-person :id.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: delete delivery person by id
type: http
seq: 3
}

delete {
url: {{baseUrl}}/api/delivery-person/:id
body: none
auth: none
}
11 changes: 11 additions & 0 deletions requests/delivery-person/get by-user.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: get delivery person by user token
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/delivery-person/by-user
body: none
auth: none
}
16 changes: 16 additions & 0 deletions requests/delivery-person/get near.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
meta {
name: list near delivery persons
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/delivery-person/near?lat=<integer>&lng=<integer>
body: none
auth: none
}

query {
lat: <integer>
lng: <integer>
}
27 changes: 27 additions & 0 deletions requests/delivery-person/post delivery-person.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
meta {
name: create delivery person
type: http
seq: 2
}

post {
url: {{baseUrl}}/api/delivery-person
body: json
auth: none
}

headers {
Content-Type: application/json
}

body:json {
{
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"locationList": [
"<number>",
"<number>"
]
}
}
11 changes: 11 additions & 0 deletions requests/delivery/delete delivery :id.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: delete delivery by id
type: http
seq: 3
}

delete {
url: {{baseUrl}}/api/delivery/:id
body: none
auth: none
}
11 changes: 11 additions & 0 deletions requests/delivery/get by-restaurant :id.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: list deliveries by restaurant id
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/delivery/by-restaurant/:id
body: none
auth: none
}
Loading
Loading