Nick Kasten IBM Dev Intern Summer 2017
git clone
this repo andcd
into the project's root directory.- Execute
mv src/sample-secret.js src/secret.js
from 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 install
from the root directory of the project to install dependencies. - Use
npm start
to start the development server and launch your app. - Navigate to
http://localhost:3000
to see your app runninig in your browser.
- In Cloudant add http://localhost:5000 to the list of origin domains.
- Run
npm run build
to run a production build. - Run
npm install -g serve
to install serve. - Run
serve -s build
to serve the production build. - Navigate to
http://localhost:5000
to see your app runninig in your browser.