Admin backend using ReactJS (along with React Router and RefluxJS), SASS, Gulp, and Browserify that also utilizes Gulp best practices from this resource, boilerplate from this resource.
- Clone this repo from
https://github.com/PunditTracker/admin.git - Run
npm installfrom the root directory - Run
gulp dev(may require installing Gulp globallynpm install gulp -g) - Your browser will automatically be opened and directed to the browser-sync proxy address
- To prepare assets for production, run the
gulp prodtask (Note: the production task does not fire up the express server, and won't provide you with browser-sync's live reloading. Simply usegulp devduring development. More information below)
Now that gulp dev is running, the server is up as well and serving files from the /build directory. Any changes in the /app directory will be automatically processed by Gulp and the changes will be injected to any open browsers pointed at the proxy address.
- Same as above
- Same as above
- Development: To deploy to the development staging environment, simply run
gulp deploy - Production: To deploy to the production environment, run
gulp deploy --prodorgulp deploy --production
Running the deploy task (whether to dev or to prod) will automatically build the correct versions of all the assets and upload them to the corresponding Amazon S3 bucket.