This is an example of Sign Up page made with Ember.js.
Sign Up Form has client side validation (thanks to ember-cp-validations) for all form fields.
Also, server-side validations are supported. Currently server is mocked with ember-cli-mirage. Username is additionally checked for the availability.
Note: In order to make the username already taken - just try to register the same name twice, without reloading the app.
Just follow installation instructions, run it, and check how it works.
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone https://github.com/arconamagi/ember-signup-example.git
cd ember-signup-example
npm install
ember serve
ornpm run start
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
ember test
ember test --server
npm run lint
to lint *.js, *.hbs, *.css files.
Or you can check separately:
npm run lint:hbs
npm run lint:css
npm run lint:js
npm run lint:js -- --fix
ember build
(development)ember build --environment production
(production)
However, this package was not tested in production :)
Copyright (c) 2019 Dmitriy Labuzov
Licensed under the MIT License.