Chris Pollett >
Students > [Bio] [Blog] |
A simple key-value store in Node.jsDavid Bui (david.bui01@sjsu.edu) Purpose: For this deliverable the goal was to implement just a simple key-value store in Node.js. To accomplish this I set up a server using the Express.js server framework and a client using the frontend library React.js. Client: In order to test the key-value store that was going to be implemented in the backend, a React page was setup in order to make testing easier. React's hot reloading system is a lot less intrusive compared to nodemon's (Another JS libary that enables hot reloading of servers) hot reloading which I used on the express server containing the key-value store. Making React perfect as a testing client for testing routes on the fly. Client Webpage App.js Server: The server is Express.js web server that implements routes that manipulate a persistent key-value store. For now the store itself is just one simple .json file that is manipulated by calling the routes below. In Deliverable 2 this store will be extended to implement a persistent Linear Hash Table get route of store.js
createKVPair route of store.js
|