Skip to content

Commit c57477a

Browse files
author
Rodrigo Quiñones Pichioli
committed
Proceding with passport middleware: configurations and strategies
1 parent b6d7ecb commit c57477a

File tree

9 files changed

+605
-13
lines changed

9 files changed

+605
-13
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,31 @@ Besides the registration the project has a simple login/logout feature made usin
1010
> - This application uses Sequelize ORM to manage relational database and maintain it's data.
1111
> - The [Passport](https://www.npmjs.com/package/passport) is basically a Express-compatible authentication middleware for Node.js.
1212
13-
I prefer not to use Flow to type data in this project, we'll use prop-types feature to type properties in React components and also say if it's necessarily required or not.
14-
15-
If you have some suggestion, let me know about it!
13+
I didn't think it was interesting to use Flow for data typing, instead I chose to use only prop-types to cover the type and obligation for React Components, when it's necessary.
1614

1715
#### Server-Side
1816
The NodeJS Express application, located in the ```/server/``` folder.
1917

2018
Inside it's scope use ```npm install``` to install all dependencies and ```npm start``` to run the server application after that.
2119

22-
>Be sure database is working before starting the server.
23-
>Database configurations for each environment are inside ```/server/config/database.json```.
20+
> - Be sure that the database is working before starting the server.
21+
> - All the database connections you need (for each environment) are in ```/server/config/database.json```.
2422
2523
#### Client-Side
26-
Located in the ```/client/``` folder the client-side React application was built within the functional preconfigured project (with Babel, Webpack, and more..) provided by the official Facebook [create-react-app](https://www.npmjs.com/package/create-react-app) npm package that simply says in it's GitHub "Create React apps with no build configuration".
24+
In the ```/client/``` folder we have the client-side React application.
25+
26+
This client was built using the official Facebook [create-react-app](https://www.npmjs.com/package/create-react-app) npm package. This package basically create a working React application, configured with minimal dependency and granting imediate work with no configuration for features like Babel, Webpack, and another stuff (because it's already done).
2727

2828
To install npm dependencies use ```npm install``` and finally ```npm start``` to run the React application.
2929

3030
#### TDD + BDD
31-
To verify if API we have done are working succesfully, we have writen some tests in Mocha + Chai, disposed in ```/server/test/```.
31+
We have some tests too to be sure that our client and server-side API are working succesfully.
32+
33+
There some tests I wrote in Mocha + Chai, disposed in ```/server/test/```.
3234

33-
We are using Mocha for the tests and Chai to the asserts (TDD) and the behaviour tests (BDD) to improve the test accuracy against the way we use the API and also the way we should take care about errors.
35+
Mocha is used to build the tests and Chai to configure the asserts (TDD) and the behaviours (BDD) to improve the test accuracy against the way we can use the API and also the way we should take care about errors. This way we know it's OK for every case.
3436

35-
You can run the tests just entering the test folder and type in terminal: ```npm run test```.
37+
You can run the tests just entering the test folder and type in terminal: ```npm run test``` - It's configured to run and compile with Babel for ES6 in then server "package.json".
3638

3739
#### Developed by
3840
Rodrigo Quiñones Pichioli, since Mar/02/2018

0 commit comments

Comments
 (0)