Event App project for CPSC542
-
Install Node.js Click here to download Node.js
-
Install CouchDB Click here to download CouchDB
-
Install POSTMAN or curl Click here to download POSTMAN (w/ Chrome extension) Click here to download curl
-
Database Setup for CouchDB
- Run the following command to add documents
POSTMAN:
PUT, http://localhost:5984/event
PUT, http://localhost:5984/user
curl:
curl -X PUT http://localhost:5984/event
curl -X PUT http://localhost:5984/user
- Run the following command to add design views
POSTMAN:
PUT, http://localhost:5984/event/_design/event, Body->binary->choose 'event.json file in InitialSetup folder of the app.
PUT, http://localhost:5984/user/_design/user, Body->binary->choose 'user.json file in InitialSetup folder of the app.
curl: curl -X PUT http://localhost:5984/event/_design/event --data-binary @event.json
curl -X PUT http://localhost:5984/user/_design/user --data-binary @user.json
- Run the application
- Run CouchDB service if it is off.
- Open a command prompt
- Change the directory to the root folder of the application
- Type 'node server'
- Open a web browser, go to http://localhost:8000