• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

cryptic-game/frontend: The official frontend of Cryptic

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

cryptic-game/frontend

开源软件地址:

https://github.com/cryptic-game/frontend

开源编程语言:

TypeScript 81.7%

开源软件介绍:

Official Cryptic Frontend

Build Status

This is the official Cryptic frontend (available on Docker Hub). It has been created with the Angular framework using TypeScript, HTML and SASS.

Set up a development environment

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:

  1. Press Ctrl+Shift+P / CMD+Shift+P.
  2. Type Task: Run Task to enter task mode.
  3. Run install to install all required dependencies. On Linux/Mac OSX you must type in your password.
  4. Execute the task run, which starts an development server listening on http://localhost:4200.

If you use the CLI:

  1. Open the repository in the terminal.
  2. Run npm install. Brew a fresh coffee, because this process can take some time.
  3. Run ng serve or npm start to start a development server listening on http://localhost:4200.

If you use WebStorm:

  1. Click File -> New -> Project from Version Control (Welcome Screen: Get from VSC)
  2. Paste the GitHub repository url.
  3. Press Shift twice. Run npm install.
  4. Click the green play button in the top right to start the Angular CLI Server.

Note: Create a new component with the command ng generate component component-name (short: ng g c component-name).

Tasks

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.

Build & Test

  • 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.

Check browser compatibility

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.).

Debugging

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap