You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,13 @@ The registration layer has a simple login/logout feature made using HOC (High Or
10
10
> - The **client-side** is a React + Redux app based.
11
11
> - The **server-side** is built in NodeJS (Express) and works like an API server.
12
12
> - This application uses Sequelize ORM to manage relational database and maintain it's data.
13
-
> - The [Passport](https://www.npmjs.com/package/passport) is basically a Express-compatible authentication middleware for Node.js.
13
+
> - The [Passport](https://www.npmjs.com/package/passport) is basically an Express-compatible authentication middleware for Node.js.
14
14
15
-
I chose to use only [prop-types](https://www.npmjs.com/package/prop-types) to cover all that is required for data typing and obligation in React Components, when it's necessary.
15
+
The authentication process uses some features like [BCrypt](https://www.npmjs.com/package/bcrypt) and [JSONWebToken](https://www.npmjs.com/package/jsonwebtoken) to pass data through API encrypted and based in token, saved in storage to control in client-side state syncronized with Redux store and in server-side saved in NodeJS session.
16
+
17
+
The configuration files are located in config folder inside server scope. The token configurations are at `/server/config/secret.js` and Passport strategies at `/server/config/passport.js` individually.
18
+
19
+
I choose to use only [prop-types](https://www.npmjs.com/package/prop-types) to cover all data typing and obligation requirements in React Components, when it's necessary.
16
20
17
21
#### Server-Side
18
22
The NodeJS Express application, located in the ```/server/``` folder.
@@ -22,6 +26,8 @@ Inside it's scope use ```npm install``` to install all dependencies and ```npm s
22
26
> - Be sure that the database is working before starting the server.
23
27
> - All the database connections you need (for each environment) are in ```/server/config/database.json```.
24
28
29
+
The Passport implementation uses
30
+
25
31
#### Client-Side
26
32
In the ```/client/``` folder we have the client-side React application.
0 commit comments