A wine cellar application which includes the basic CRUD operations
Server Side Setup
How to make the project
- install mongodb
- install node
- store server in a xyz folder
- install the mongo driver in this xyz folder
- install express also in this folder (I guess this could be somewhere else)
Running the project
- Start cmd-> go to mongo bin (will be in program files)
- Enter "mongod --dbpath <project folder path>" in command prompt, this will start the server with where the database is located. This denotes the project in the folder path. This keeps database at the server code end
- Open another cmd -> go to <project folder path ]> -> node <server.js>
- This starts the node based web server
- Now for the client end code (could be through curl or wamp)
Running a client on localhost
- Start wamp
- Store the front end code in the www folder of wamp
- Open localhost/projectName….
- To refresh the front end after change do a ctrl+F5