A demo to use node & csv databse to build a register system.
- install node.
npm install -g webpackto install webpacknpm installin project root folder.webpackto compile script, and watch file change.node ./public/server.jsto start http server.- Done! Try
http://localhost:8089in your browser:)
- add more router to functions in
src/main.js. database.jsuse to access csv database. you can put your queries in this file.- make sure
webpack -walways runned in command line. it will watch any file changes fromsrcfolder, and compile your code from es5 to es6. - run
node ./public/server.jsto see what happend.