This project is a simple web based application allowing users to register an account with only a username and password. I am using Angular and Node.js to do the project. Valid username and password is written to post.json file.
Make sure you have Node version v8.1.3, NPM < 5 like version 4.6.1 and Angular version 4
# clone our repo
git clone https://github.com/mengzhen94/registerPage-test
# change directory to our repo
cd registerPage-test
# install the repo and depedency with npm
npm install
# start the server
# First we need to bulid the Angular source file using "ng build", then we run node server file using "node server.js"
# To make it easy, I have defined a script task for it the package.json: "server": "ng build && node server.js"
npm run server
# open the application
Navigate to http://localhost:8080/.
npm test
Document of the project is auto-generated by Compodoc. It is in documentation folder. Please open it in the browser.
Username and password validation
Successfully registered
Username is already registered