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