Before you commit, lint:
npm run build
Install some npm globals if you have not done so
npm i -g typescript webpack nodemon
Define your .env
in the root of your proj
PORT=3000
MONGO_URI=mongodb://localhost:27017/webpackComponentsOne
SESSION_SECRET=secretkey
ROOT_URL=http://localhost:3000
TWITTER_KEY=yourTwitterAppID
TWITTER_SECRET=yourTwitterAppSecret
[email protected]
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password
JWT_SECRET=secretkey
Commands
npm start
npm run preinstall
npm run postinstall
npm run analyze
npm run build:client
npm run build:sass
npm run build
npm run build:prod
npm run dev
npm run lint
npm run serve
npm run debug
npm run inspect
npm test
Additional setup:
Get a twitter API key: https://apps.twitter.com/
Known bugs:
-
I am currently unaware of how to wait for express to load before I open the browser. So refresh your page.
-
Websockets
reload
package is notbrowser sync
likelite-server
. It will light up your console.
TODO:
-
Bootstrap -
API w/ JSON Datasets
-
express-session auth -
AUTH core component and UNAUTH core component
-
Webpack import sass -
Webpack html template caching
-
Treeshaking <- google it
-
Webpack import HTML templates
-
Deployment build
-
Websockets server
-
Hot module loading in webpack dev server. (unlikely) -
Twitter OAuth -
HTML script injection -
Separate API and Client deployments w/ trust proxy
-
Roles w/ connect-roles
-
Flash messages from express and passport