Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TradingSystem

This system is trading simulation platform where users can trade BTC and view their transaction history.

This project uses Spring Boot with PostgresSQL and MongoDB.

If you want to learn more about SpringBoot, please visit its website: https://spring.io/projects/spring-boot .

Packaging and running the application

The application can be packaged using:

./mvnw package

Running the application in different mode

In local mode:

./mvnw compile spring-boot:run

In dev mode:

./mvnw compile spring-boot:run -Dspring-boot.run.profiles=dev

In prod mode:

./mvnw compile spring-boot:run -Dspring-boot.run.profiles=prod

Running the application with docker

Build docker image:

docker-compose build --no-cache

Start your docker container:

docker-compose up -d

Rebuild docker image without downtime:

docker-compose up -d --no-deps --build

Display system log in docker container:

docker-compose logs -f --tail 100

Stop your docker container

docker-compose down

Displaying API ui in swagger

You can click swagger url when your application is running: http://localhost:8080/swagger-ui/index.html

System designing diagram

alt text

Table schema

User

key Type
id string
name string
email string
address string
createdAt date

Relationship

key Type
id string
userId string
price decimal
amount decimal
currency string
type string
createdAt date

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages