Skip to content

Commit 2910255

Browse files
committed
Merge branch 'develop' into release
2 parents 983c62e + 626babf commit 2910255

80 files changed

Lines changed: 5690 additions & 4545 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ script:
1717
after_success:
1818
- if [ "$TRAVIS_BRANCH" == "master" ]; then
1919
docker build -t $DOCKER_USERNAME/cryptowallet-backend .;
20-
echo "Testing Docker Hub credentials...";
2120
docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD;
2221
echo "Docker Hub credentials are working";
2322
docker push $DOCKER_USERNAME/cryptowallet-backend;

BDD_V1.4.png

-116 KB
Binary file not shown.

BDD_V1.5.png

135 KB
Loading

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- LAFAYE DE MICHEAUX Yoan
1212

1313
## Global database scheme
14-
![](BDD_V1.4.png)
14+
![](BDD_V1.5.png)
1515

1616
## Getting started
1717
- Clone Polytech-CryptoWallet-Backend project

config/mysql/docker-entrypoint-initdb.d/CREATE_ALL.sql

Lines changed: 1384 additions & 1332 deletions
Large diffs are not rendered by default.

config/nginx/certs/.gitkeep

Whitespace-only changes.

docker-compose.yml

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,50 @@ services:
99
volumes:
1010
- ./data/mysql:/var/lib/mysql
1111
- ./config/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
12+
ports:
13+
- "3306:3306"
1214

1315
cryptowallet-backend-container:
14-
container_name: "cryptowallet-backend-container"
15-
depends_on:
16-
- mysql-db-container
17-
image: delormeloic26/cryptowallet-backend
18-
links:
19-
- mysql-db-container
20-
ports:
21-
- "80:8090"
22-
restart: always
16+
container_name: cryptowallet-backend-container
17+
depends_on:
18+
- mysql-db-container
19+
image: delormeloic26/cryptowallet-backend
20+
links:
21+
- mysql-db-container
22+
restart: always
23+
environment:
24+
- VIRTUAL_PORT=8090
25+
- VIRTUAL_HOST=cryptowallet.loic-delorme.fr
26+
- VIRTUAL_PROTO=https
27+
- LETSENCRYPT_HOST=cryptowallet.loic-delorme.fr
28+
- LETSENCRYPT_EMAIL=loic.delorme.pro@gmail.com
29+
30+
cryptowallet-nginx-proxy-container:
31+
container_name: cryptowallet-nginx-proxy-container
32+
depends_on:
33+
- cryptowallet-backend-container
34+
image: jwilder/nginx-proxy:alpine
35+
restart: always
36+
environment:
37+
- ENABLE_IPV6=true
38+
- HTTPS_METHOD=nohttp
39+
ports:
40+
- "80:80"
41+
- "443:443"
42+
volumes:
43+
- ./config/nginx/certs:/etc/nginx/certs:ro
44+
- /etc/nginx/vhost.d
45+
- /usr/share/nginx/html
46+
- /var/run/docker.sock:/tmp/docker.sock:ro
47+
48+
cryptowallet-nginx-proxy-companion-container:
49+
container_name: cryptowallet-nginx-proxy-companion-container
50+
depends_on:
51+
- cryptowallet-backend-container
52+
image: jrcs/letsencrypt-nginx-proxy-companion
53+
restart: always
54+
volumes:
55+
- ./config/nginx/certs:/etc/nginx/certs:rw
56+
- /var/run/docker.sock:/var/run/docker.sock:ro
57+
volumes_from:
58+
- cryptowallet-nginx-proxy-container

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>fr.polytech</groupId>
77
<artifactId>cryptowallet-backend</artifactId>
8-
<version>1.2.1</version>
8+
<version>1.5</version>
99
<packaging>jar</packaging>
1010

1111
<name>Polytech-Codev-Backend</name>

scripts/sql/CLEAN_DATA.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ USE CryptoWallet;
33
DELETE FROM assets;
44
DELETE FROM wallets;
55
DELETE FROM alerts;
6-
DELETE FROM settings;
76
DELETE FROM tokens;
87
DELETE FROM logs;
8+
DELETE FROM devices;
99
DELETE FROM favorites;
1010
DELETE FROM users;
11+
DELETE FROM settings;
1112
DELETE FROM alert_types;
12-
DELETE FROM cryptocurrencies;
13+
DELETE FROM cryptocurrencies;
14+
DELETE FROM chart_periods;
15+
DELETE FROM currencies;
16+
DELETE FROM themes;

scripts/sql/CLEAN_TABLES.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ USE CryptoWallet;
33
DROP TABLE assets;
44
DROP TABLE wallets;
55
DROP TABLE alerts;
6-
DROP TABLE settings;
76
DROP TABLE tokens;
87
DROP TABLE logs;
8+
DROP TABLE devices;
99
DROP TABLE favorites;
1010
DROP TABLE users;
11+
DROP TABLE settings;
1112
DROP TABLE alert_types;
12-
DROP TABLE cryptocurrencies;
13+
DROP TABLE cryptocurrencies;
14+
DROP TABLE chart_periods;
15+
DROP TABLE currencies;
16+
DROP TABLE themes;

0 commit comments

Comments
 (0)