Orders Deals Application
Table of Contents
- Clone the repo:
git clone https://github.rp-core.com/NGOrders/application-deals.git.
.npmrcfile into user home directory with:
- Install build dependencies:
- Run the project
npm run start:dev
This will build the project and run a server at http://localhost:3000. It should automatically open. This will increment a number if that port is unavailable. It will also watch for changes and automatically recompile and update the HTML, JS and (S)CSS.
Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:
application-deals/ ├── conf/ └── src/ ├── actions/ ├── app/ │ ├── /conf.js │ └── /index.js ├── clients/ ├── components/ ├── constants/ ├── flow/ ├── helpers/ ├── reducers/ ├── sagas/ ├── selectors/ ├── services/ ├── utilities/ └── index.html
||Sources the dev environment, compiles the SCSS and JS, runs the server and displays the site.|
||Sources the qa environment, compiles the SCSS and JS, runs the server and displays the site.|
||This script is similar to other 'start' scipts. But it is starting application but aimed to locally ran endpoints. (Looking for backend services in http://127.0.0.1:8080)|
||Runs ESLint for JS files.|
||Runs the Jest CLI test suite.|
||Runs the test suite on only changed files.|
||Runs the test suite and update snapshots.|
||Runs flow type checking.|
||Audits the CSS and creates reports|
||Task for demo branch. Compiles files in production mode and copy config file which will be filled with demo jenkins job.|
||Compiles the (S)CSS and JS, minifies all assets, adds a header to each file, runs the linter, test suite and audit.|
- Build to deploy:
npm run dist
Bugs and feature requests
Contribution is a perfect way to help advance the project. Please read the contributing guidelines before getting started.
How to handle flow-typed:
- Update definitions:
- Create stubs:
flow-typed create-stub email@example.com
© 2017-2018. Maintained by @NGOrders.