Table of contents generated with markdown-toc
This project was created to demonstrate how I would setup a simple sign-up form. The form itself has the following requirements...
- The form should allow users to enter first name, last name, email, and password.
- All fields are required.
- Password validation:
- Should be a minimum of eight characters,
- Should contain lower and uppercase letters,
- Should not contain user’s first or last name.
- Email should be validated but there are various ways of accomplishing this. So, show us what you consider as a proper email validation.
After cloning this repository, install the dependencies.
npm install
To serve the project locally, run the following command...
npm run start
The app can now be reached by visiting http://localhost:4200
. The browser will automatically refresh when the code is updated.
Unit tests can be executed and developed by running the following command...
npm run test
To check the code for any potential linting errors, run...
npm run lint
To create and run the Docker image locally, first download Docker Desktop.
To build an image, run the following command...
docker build --tag coding-challenge:1.0 .
And to run the image...
docker run --publish 80:80 coding-challenge:1.0
You can now access the project by visiting http://localhost
.
To build the project, run...
npm run build
or the following command if you wish to build for production...
npm run build:prod
Deploy the files in dist/coding-challenge
to your server.