Skip to content

Commit 78c1a22

Browse files
committed
fix renames
1 parent 25f4414 commit 78c1a22

File tree

4 files changed

+34
-25
lines changed

4 files changed

+34
-25
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Learn to build a Blogging platform like Medium, MindOrks, and FreeCodeCamp - Open-Source Project By Janishar Ali
33

44
<p align="center">
5-
<img src="https://raw.githubusercontent.com/afteracademy/nodejs-backend-architecture-typescript/master/addons/github_assets/cover-nodejs-backend.png">
5+
<img src="https://raw.githubusercontent.com/janishar/nodejs-backend-architecture-typescript/master/addons/github_assets/cover-nodejs-backend.png">
66
</p>
77
<br>
88

@@ -24,12 +24,12 @@ Following are the features of this project:
2424
* **Unit test is favored**: The tests have been written to test the functions and routes without the need of the database server. Integration tests has also been done but the unit test is favored.
2525
* **A pure backend project**: We have experienced that when a backend is developed clubbed with a frontend then in the future it becomes really difficult to scale. We would want to create a separate backend project that servers many websites and mobile apps.
2626

27-
## We have also open source a complete blogging website working on this backend project: [Goto Repository](https://github.com/afteracademy/react-app-architecture)
27+
## We have also open source a complete blogging website working on this backend project: [Goto Repository](https://github.com/janishar/react-app-architecture)
2828
> In the above repository [**React.js Isomorphic Web Application Architecture**] we will learn and build a React web application for a blogging platform using this project as its API server. [Visit demo website](https://demo.react-app-architecture.afteracademy.com)
2929
3030
## 3RE Architecture: Router, RouteHandler, ResponseHandler, ErrorHandler
3131
<p align="center">
32-
<img src="https://raw.githubusercontent.com/afteracademy/nodejs-backend-architecture-typescript/master/addons/github_assets/3RE.png">
32+
<img src="https://raw.githubusercontent.com/janishar/nodejs-backend-architecture-typescript/master/addons/github_assets/3RE.png">
3333
</p>
3434
<br>
3535

@@ -220,7 +220,7 @@ Following are the features of this project:
220220
```json
221221
{
222222
"name" : "Janishar Ali",
223-
"email": "ali@afteracademy.com",
223+
"email": "ali@github.com",
224224
"password": "changeit",
225225
"profilePicUrl": "https://avatars1.githubusercontent.com/u/11065002?s=460&u=1e8e42bda7e6f579a2b216767b2ed986619bbf78&v=4"
226226
}
@@ -234,7 +234,7 @@ Following are the features of this project:
234234
"user": {
235235
"_id": "5e7c9d32307a223bb8a4b12b",
236236
"name": "Janishar Ali",
237-
"email": "ali@afteracademy.com",
237+
"email": "ali@github.com",
238238
"roles": [
239239
"5e7b8acad7aded2407e078d7"
240240
],

addons/init-mongo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ function seed(dbName, user, password) {
2626
]);
2727
}
2828

29-
seed('afteracademy-blog-db', 'afteracademy-blog-db-user', 'changeit');
30-
seed('afteracademy-blog-test-db', 'afteracademy-blog-test-db-user', 'changeit');
29+
seed('blogs-db', 'blogs-db-user', 'changeit');
30+
seed('blogs-test-db', 'blogs-test-db-user', 'changeit');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"repository": {
2020
"type": "git",
21-
"url": "https://github.com/afteracademy/nodejs-backend-architecture-typescript.git"
21+
"url": "https://github.com/janishar/nodejs-backend-architecture-typescript.git"
2222
},
2323
"author": "Janishar Ali",
2424
"license": "Apache-2.0",

tests/.env.test.example

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
11
# .test.env.example
22
# This set the envionment variable for the test environment
3-
43
# Environment Name
54
NODE_ENV=test
65

6+
# TimeZone
7+
TZ=UTC
8+
9+
# Server listen to this port
10+
PORT=3000
11+
712
#Cors
813
CORS_URL=*
914

1015
# Databse
11-
#YOUR_TEST_MONGO_DB_NAME
12-
DB_NAME=afteracademy-blog-test-db
16+
# YOUR_TEST_MONGO_DB_NAME
17+
DB_NAME=blogs-test-db
18+
DB_MIN_POOL_SIZE=2
19+
DB_MAX_POOL_SIZE=5
1320

1421
#localhost or IP of the server
15-
#YOUR_TEST_MONGO_DB_HOST_NAME
22+
# YOUR_TEST_MONGO_DB_HOST_NAME
1623
DB_HOST=localhost
1724

1825
DB_PORT=27017
1926

20-
#YOUR_TEST_MONGO_DB_USER_NAME
21-
DB_USER=afteracademy-blog-test-db-user
27+
# YOUR_TEST_MONGO_DB_USER_NAME
28+
DB_USER=blogs-test-db-user
2229

23-
#YOUR_TEST_MONGO_DB_USER_PWD
24-
DB_USER_PWD=changeit
30+
# YOUR_TEST_MONGO_DB_USER_PWD
31+
DB_USER_PWD=changeit
2532

26-
#Log
27-
#Example '/Users/janisharali/logs'
28-
#DEFAUlT is this project's directory
29-
#LOG_DIR=YOUR_TEST_DIRECTORY_PATH_FOR_LOG_FILES
33+
# Log
34+
# Example '/home/node/logs'
35+
# DEFAUlT is this project's directory
36+
# LOG_DIR=YOUR_TEST_DIRECTORY_PATH_FOR_LOG_FILES
3037

31-
#Token Info
32-
ACCESS_TOKEN_VALIDITY_DAYS=30
33-
REFRESH_TOKEN_VALIDITY_DAYS=120
34-
TOKEN_ISSUER=test.afteracademy.com
35-
TOKEN_AUDIENCE=test.afteracademy.com
38+
# Token Info
39+
# 2 DAYS: 172800 Sec
40+
ACCESS_TOKEN_VALIDITY_SEC=172800
41+
# 7 DAYS: 604800 Sec
42+
REFRESH_TOKEN_VALIDITY_SEC=604800
43+
TOKEN_ISSUER=api.dev.xyz.com
44+
TOKEN_AUDIENCE=xyz.com

0 commit comments

Comments
 (0)