Nick Kasten IBM Dev Intern Summer 2017
git clonethis repo andcdinto the project's root directory.- Execute
mv src/sample-secret.js src/secret.jsfrom the root directory. - Create a new database in your Cloudant instance.
- Enable CORS in Cloudant and add http://localhost:3000 to the list of origin domains.
- Add your Cloudant URL to
src/secret.js. - Execute
npm installfrom the root directory of the project to install dependencies. - Use
npm startto start the development server and launch your app. - Navigate to
http://localhost:3000to see your app runninig in your browser.
- In Cloudant add http://localhost:5000 to the list of origin domains.
- Run
npm run buildto run a production build. - Run
npm install -g serveto install serve. - Run
serve -s buildto serve the production build. - Navigate to
http://localhost:5000to see your app runninig in your browser.