Map
======================
- Listing locations of UNESCO World Heritage.
- Implemented with Google Maps.
- backend : A backend using swagger-node.
- frontend : A frontend application by React and Flux.
-
Start the backend application.
cd [APP_DIR]/backend vi config.js # If you need to change the configuration of backend. npm install npm start
-
Start the frontend application.
cd [APP_DIR]/frontend npm install npm start
We recommend using K5 PaaS CF by which you can easily deploy the application.
-
Deploy following buildpacks. (CF Document)
- Node.js buildpack for the backend application
- Static file buildpack for the frontend application
-
Configure the CLI tool for CF. (CF Document)
-
Set node engine version of
package.json."engines": { "node": "6.*" },
-
Deploy the backend application.
cd [APP_DIR]/backend vi config.js # If you need to change the configuration of backend. cf push [YOUR_BACKEND_APPLICATION_NAME]
-
Build the frontend application.
cd [APP_DIR]/frontend export API_URL=[BACKEND_URL] npm install npm run build
-
Deploy the frontend application
cd [APP_DIR]/frontend/public cf push [YOUR_FRONTEND_APPLICATION_NAME]
Not to mention that, it's just out of a template. Better you modify, finner your application become. So let's play with it.
MIT