This is the official Cryptic frontend (available on Docker Hub). It has been created with the Angular framework using TypeScript, HTML and SASS.
NodeJS and NPM are required to compile and start the application. Refer to https://nodejs.org/de/ for download/installation instructions. To get help, run ng --help
or check the Angular documentation / Angular CLI documentation.
If you use VSCode:
Task: Run Task
to enter task mode. install
to install all required dependencies. On Linux/Mac OSX you must type in your password.run
, which starts an development server listening on http://localhost:4200.If you use the CLI:
npm install
. Brew a fresh coffee, because this process can take some time.ng serve
or npm start
to start a development server listening on http://localhost:4200. If you use WebStorm:
Get from VSC
)npm install
. Note: Create a new component with the command ng generate component component-name
(short: ng g c component-name
).
VSCode allows to create tasks, which can be very helpful to manage big projects without a CLI. Tasks can be executed via the command palette (open with Ctrl+Shift+P / CMD+Shift+P). Learn more in this task tutorial.
Tasks:
build
: compiles and builds the whole project. The result will be stored in dist/
.test
: test your code with Karma.ng build
: compiles and builds the whole project. The result will be stored in dist/
. For production mode use the --prod
argument.ng test
: tests your code with Karma.ng e2e
: runs end-to-end tests with Protractor.To check browser-compatibility, use Can I use. You should test your code at minimum with one WebKit browser (Chrome, Chromium, Safari, or Opera) and one non-WebKit browser (Firefox or Microsoft Edge).
Note: CSS tricks delivers tips for CSS/SCSS (e.g. centering, flex-box, grid etc.).
VSCode comes with a built-in, ready-to-use debugger that requires the Debugger for Chrome browser extension. To use it, run the task run
, switch to the debug section, and start Run
.