-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96c9fa1
commit 42e2a6f
Showing
19 changed files
with
3,055 additions
and
7,465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
# ticketing | ||
# Ticketing | ||
|
||
 | ||
|
||
A demo microservices project using docker, kubernetes and skaffold consisting of several different services. | ||
|
||
- **Auth Service**: Responsible for authentication and authorization usnig JWTs. | ||
- **Client Service**: The Next.js app . | ||
- **Expiration Service**: Responsible for notifying other services that the lock on a ticket being purchased has expired. When a user proceeds to payment, the ticket gets locked for a short amount of time to prevent it from being purchased by several users at the same time. | ||
- **Orders Service**: Responsible for managing users' orders. | ||
- **Payments Service**: Responsible for handling payment requests with stripe. | ||
- **Tickets Service**: Responsible for managing tickets. | ||
|
||
## Built with: | ||
|
||
- Next.js | ||
- Express.js | ||
- MongoDB | ||
- Redis | ||
- Stripe | ||
- Nats | ||
- Ingress Nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM node:16-alpine | |
WORKDIR /app | ||
|
||
COPY package.json . | ||
RUN npm i --only=prod | ||
RUN npm i | ||
COPY . . | ||
|
||
CMD ["npm","start"] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,59 @@ | ||
apiVersion: skaffold/v2beta26 | ||
apiVersion: skaffold/v4beta12 | ||
kind: Config | ||
deploy: | ||
kubectl: | ||
manifests: | ||
- infra/k8s/* | ||
build: | ||
local: | ||
push: false | ||
artifacts: | ||
- context: auth | ||
image: jamalalhneidi/auth | ||
docker: | ||
dockerfile: Dockerfile | ||
- image: jamalalhneidi/auth | ||
context: auth | ||
sync: | ||
manual: | ||
- src: 'src/**/*.ts' | ||
- src: src/**/*.ts | ||
dest: . | ||
- context: client | ||
image: jamalalhneidi/client | ||
docker: | ||
dockerfile: Dockerfile | ||
- image: jamalalhneidi/client | ||
context: client | ||
sync: | ||
manual: | ||
- src: '**/*.js' | ||
dest: . | ||
- context: tickets | ||
image: jamalalhneidi/tickets | ||
docker: | ||
dockerfile: Dockerfile | ||
- image: jamalalhneidi/tickets | ||
context: tickets | ||
sync: | ||
manual: | ||
- src: 'src/**/*.js' | ||
- src: src/**/*.js | ||
dest: . | ||
- context: orders | ||
image: jamalalhneidi/orders | ||
docker: | ||
dockerfile: Dockerfile | ||
- image: jamalalhneidi/orders | ||
context: orders | ||
sync: | ||
manual: | ||
- src: 'src/**/*.js' | ||
- src: src/**/*.js | ||
dest: . | ||
- context: expiration | ||
image: jamalalhneidi/expiration | ||
docker: | ||
dockerfile: Dockerfile | ||
- image: jamalalhneidi/expiration | ||
context: expiration | ||
sync: | ||
manual: | ||
- src: 'src/**/*.js' | ||
- src: src/**/*.js | ||
dest: . | ||
- context: payments | ||
image: jamalalhneidi/payments | ||
docker: | ||
dockerfile: Dockerfile | ||
- image: jamalalhneidi/payments | ||
context: payments | ||
sync: | ||
manual: | ||
- src: 'src/**/*.js' | ||
- src: src/**/*.js | ||
dest: . | ||
docker: | ||
dockerfile: Dockerfile | ||
local: | ||
push: false | ||
manifests: | ||
rawYaml: | ||
- infra/k8s/* | ||
deploy: | ||
kubectl: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters