- ES6/ES7 ready
- Babel
- Bootstrap 4 & Mixins
- CSS Modules
- Flow.js
- PostCSS, CSS Variables and autoprefixer
- Tree Shaking
- webpack.config (development & production mode)
- Browsersync
- Express
- EJS
- SASS
- ESLint
- standard.js
- yarn.lock
- .editorconfig
-
install
yarn
(ornpm
) -
run
yarn
oryarn install
(ornpm install
) to install all npm paskages -
To be able to fetch email from users through Github API we need to use
Authorisation
. For the app to work we first need to get Personal access token from Github account. To get the token we go to ourGithub profile/Settings/Personal access tokens
. We click onGenerate new token
, give him some description and underSelect scopes
we click onuser:email Access user email addresses (read-only)
andGenerate token
.
-
We get a new token. Copy the token, go back to application and paste it inside
app.json
andapp.local.json
file insideconf folder
underGITHUB_ACCESS_TOKEN
-
It should look like this
{
"APP_PORT": 3000,
"GITHUB_ACCESS_TOKEN": "7skepblaf1dab4d1f9c51b9101ooeqbnd4e83da4"
}
Note => If user didn't set email address as public it will not be fetched.
-
Now we can run the app
-
If we run the app in production mode, settings from app.json and webpack.config.prod.babel.js will be used
-
If we run the app in development mode, settings from app.local.json and webpack.config.babel.js will be used
yarn run clean-client
will delete client bundlebuild
yarn run clean-server
will delete server bundledist
-
yarn run build-server
will bundle server for production usingbabel
and make abuild
folder -
yarn run build-client
will bundle client for production usingwebpack
and make adist
folder -
yarn run start
sets NODE_ENV = production, runsbuild-server
andbuild-client
script and starts the app on port 3001
yarn run start-dev
will set NODE_ENV = development and start the server usingnodemon
on port 3000yarn run webpack
will start the webpack inwatch mode
, make a bundle directorydist
, start thebrowsersync
and automatic reloading and run the app on port 3002
yarn run flow
will run flow checkyarn run test
will run all the testsyarn run coverage
will run test coverage