Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CircleCI-Public/sample-javascript-cfd

Repository files navigation

CircleCI Build StatusSoftware License

Description

This Sample Vue.JS front-end project demonstrates what a typical JavaScript (or node) CI workflow may look on CircleCI.

You can preview the live CI workflow for this applicationon CircleCI.

In this sample config, we have a single workflowbuild-and-test which will install and cache our node packages, and runnpm run test within a node-based executor. This config makes use of theNode orb, a package for CircleCI's config language, which makes writing our config shorter, and easier.

Getting Started

If you would like to copy theconfig.yml and adapt it to your project, be sure to read the comments in the config file to ensure it works for your project. For more details, see theCircleCI configuration reference.

About This App

This sample application is aSingle Page Application written inVue.JS, a popular front-end JavaScript framework, and utilizes theIonic Framework which will allow us to deploy our application to mobile devices.

BothVue.JS andIonic Framework are also users of CircleCI 🎉, and you can view the CI configs they use in their respective repositories

Continuous Food Delivery

When you load up the app, you will be presented with a menu from theContinuous Food Delivery service, and a cart for items you wish to order. Click on items from the menu to have them added to your cart in real-time and the order total will automatically calculate.

Preview Gif of Continuous Food Delivery app

API Server

CFD(Continuous Food Delivery) is a sample application which relies on an API server to both fetch menu items, as well as add them to your cart. If you would like to run this project locally, you must supply a valid CFD API service, such as one of the following sample projects for back-end languages:

LanguageGitHubDescription
PythonLinkA Python-Flask CFD API server

Run and Test Locally

Requirements

Node v16+

Run Local Dev Server

  1. Install packages
yarn install
  1. Begin first by selecting an appropriate CFD API service from the list above and follow the repo's instructions for launching the API service.

  2. UpdateVUE_APP_API_URL located in.env to desired API service route.

  3. Start the local development server with the following command:

yarn start

Tests

Multiple types of testing are available for this sample application. View thepackage.json file for all available scripts.

"test:unit":"vue-cli-service test:unit","test:e2e":"vue-cli-service test:e2e","test":"echo\"Error: no test specified. Did you mean 'test:unit'\" && exit 0""lint":"vue-cli-service lint",

Additional Resources

License

This repository is licensed under the MIT license.The license can be foundhere.

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp