Skip to content

Commit 61c9c65

Browse files
committed
Update project
1 parent 648b530 commit 61c9c65

Some content is hidden

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

51 files changed

+75
-67
lines changed

.env.example

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
MYSQL_DB_HOST=localhost
2-
MYSQL_DB_PORT=3310
3-
MYSQL_DB_USER=root
4-
MYSQL_DB_PASSWORD=root
1+
APP_PORT_BACKEND=8888
2+
MYSQL_DB_HOST=db
3+
MYSQL_DB_PORT=3311
4+
MYSQL_DB_UNAME=root
5+
MYSQL_DB_PASSWD=root

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
3-
# Copyright © 2021 Subhrodip Mohanta ([email protected])
3+
# Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU Affero General Public License as published by

README.md

Lines changed: 5 additions & 1 deletion

docker-compose.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
3-
# Copyright © 2021 Subhrodip Mohanta ([email protected])
3+
# Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU Affero General Public License as published by
@@ -22,11 +22,13 @@ services:
2222

2323
db:
2424
image: mysql:8
25+
container_name: db
2526
volumes:
2627
- db_data:/var/lib/mysql
2728
restart: always
29+
hostname: db
2830
ports:
29-
- "3310:3306"
31+
- "${MYSQL_DB_PORT}:3306"
3032
environment:
3133
MYSQL_ROOT_PASSWORD: root
3234
MYSQL_DATABASE: twitter
@@ -36,17 +38,18 @@ services:
3638
twitter-backend:
3739
depends_on:
3840
- db
41+
container_name: twitter-backend
3942
build:
4043
context: .
4144
dockerfile: Dockerfile
4245
ports:
43-
- "8080:8080"
46+
- "${APP_PORT_BACKEND}:8080"
4447
restart: always
4548
environment:
46-
MYSQL_DB_HOST: db
47-
MYSQL_DB_PORT: 3306
48-
MYSQL_DB_UNAME: root
49-
MYSQL_DB_PASSWD: root
49+
MYSQL_DB_HOST: ${MYSQL_DB_HOST}
50+
MYSQL_DB_PORT: ${MYSQL_DB_PORT}
51+
MYSQL_DB_UNAME: ${MYSQL_DB_UNAME}
52+
MYSQL_DB_PASSWD: ${MYSQL_DB_PASSWD}
5053

5154
volumes:
5255
db_data: {}

etc/license-plugin-header-style.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--
33
44
Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
5-
Copyright © 2021 Subhrodip Mohanta ([email protected])
5+
Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
66
77
This program is free software: you can redistribute it and/or modify
88
it under the terms of the GNU Affero General Public License as published by

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--
33
44
Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
5-
Copyright © 2021 Subhrodip Mohanta ([email protected])
5+
Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
66
77
This program is free software: you can redistribute it and/or modify
88
it under the terms of the GNU Affero General Public License as published by

src/main/java/xyz/subho/clone/twitter/TwitterBackendApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
3-
* Copyright © 2021 Subhrodip Mohanta ([email protected])
3+
* Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Affero General Public License as published by

src/main/java/xyz/subho/clone/twitter/config/ApplicationErrorAttributes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
3-
* Copyright © 2021 Subhrodip Mohanta ([email protected])
3+
* Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Affero General Public License as published by

src/main/java/xyz/subho/clone/twitter/config/ApplicationErrorController.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
3-
* Copyright © 2021 Subhrodip Mohanta ([email protected])
3+
* Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Affero General Public License as published by
@@ -33,16 +33,16 @@
3333
public class ApplicationErrorController extends BasicErrorController {
3434

3535
/**
36-
* @param errorAttributes
37-
* @param serverProperties
36+
* @param errorAttributes ErrorAttributes
37+
* @param serverProperties ServerProperties
3838
*/
3939
public ApplicationErrorController(
4040
ErrorAttributes errorAttributes, ServerProperties serverProperties) {
4141
super(errorAttributes, serverProperties.getError());
4242
}
4343

4444
/**
45-
* @param request
45+
* @param request HttpServletRequest
4646
* @return ResponseEntity for Errors
4747
*/
4848
@RequestMapping(produces = MediaType.APPLICATION_JSON_VALUE)

src/main/java/xyz/subho/clone/twitter/controller/FaultyRestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Twitter Backend - Moo: Twitter Clone Application Backend by Scaler
3-
* Copyright © 2021 Subhrodip Mohanta ([email protected])
3+
* Copyright © 2021-2023 Subhrodip Mohanta ([email protected])
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Affero General Public License as published by

0 commit comments

Comments
 (0)