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

lanebreach/frontend

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

开源软件名称:

lanebreach/frontend

开源软件地址:

https://github.com/lanebreach/frontend

开源编程语言:

JavaScript 99.8%

开源软件介绍:

LaneBreach Front-end

NOTE: Work on this project has been paused in favor of using a templated solution. We'll revisit this decision at some point in 2020.

This repository contains the front-end application for viewing the data for the lane-breach application.

Build Status (master)

CircleCI

Prerequisite

Packages/Tools

Environment (Optional)

While not at all required, this projecct is optimized for Microsofts Free VSCode IDE and Google's CloudCode plugin for VSCode.

You can download VSCode here:

You will then want to install the CloudCode plugin, which can be done by navigating to the extensions (squares) icon in the lefthand toolbar and searching for it.

You can find more info on all the features here:

Setup Project

Clone the project, cd into it, install dependencies, pick a port and run it. You're now live and ready to code.

git clone https://github.com/lanebreach/frontend.git
cd frontend/src
npm install
PORT=3000 npm run-script dev

Project Operations

Running Locally

PORT=3000 npm run-script dev

The app is now running on localhost:3001.

N.B.: The web-app port for local development is always PORT + 1.

Mimicking Production Locally

To ensure that things will work in production. You can use the included Kubernetes manifests and skaffold file to build the Docker images, and deploy to your one-node K8S cluster running on Docker for Desktop on your machine.

If you have VSCode and the CloudCode plugin installed, simply bring up the Command Pallet (Shift-Command-P [MacOS]) and type Deploy. Hit enter and it will give you options about what cluster to deploy to (if you happen to have more than one configured). Hit enter again and watch the magic begin.

If you stumble into an issue that only seems to be occuring here, you can have CloudCode automatically build and deploy on file change using the Continuous Deploy rather than Deploy option.

Build for Production

Production builds are handled by CircleCI on merge of your feature branch into master. You can find the build scripts in .circle/config.yml file.

More information about the build / deployment can be found in docs/architecture/BuildDeploy.md

Developer Workflow

  1. Check out the project
  2. Make a new feature branch git checkout -b feature/my_feature_name
  3. Make changes
  4. Run tests
  5. Commit with a descriptive message of your changes, ideally with a prefix to the issue number in GitHub you are addressing. E.g.:
#[19]: Refactored code base to mirror build concerns in directory structure. Added build and deploy configuration using CircleCI
  1. Head to GitHub and make a Pull Request
  2. If CircleCI builds and people approve, you can merge to master.
  3. Someone will eventually release the deployment hold, and your changes will roll out live to the main site!



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
JDutil/spree_bootstrap: Spree Frontend Replacement w/Twitter Bootstrap发布时间:2022-06-08
下一篇:
Hidendra/mcstats.org: mcstats.org frontend发布时间:2022-06-08
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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