Coder Social home page Coder Social logo

agdholo / frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chafan-dev/chafan-pwa

0.0 1.0 0.0 695 KB

Home Page: https://cha.fan

License: Apache License 2.0

Makefile 0.09% JavaScript 1.76% HTML 0.29% Vue 72.04% TypeScript 25.78% SCSS 0.04%

frontend's Introduction

Chafan frontend

CodeQL CI

Project setup

npm install

Example local development environment file (.env.local):

VUE_APP_DOMAIN_DEV=localhost:4582
VUE_APP_DOMAIN_STAG=localhost:4582
VUE_APP_NAME=Chafan Demo
VUE_APP_ENV=development
VUE_APP_APPZI=
VUE_APP_PROD_STATE_JSON_URL=https://chafan-prod-state.s3.amazonaws.com/prod-state.json

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

API server mock

The API server is mocked by a express server at e2e_tests/server.js. To test the frontend, please run it locally: node e2e_tests/server.js.

Some APIs are missing from mock server for now. You can add code for mock server along with the frontend code change if needed.

Run production build locally

Prepare:

brew install mkcert
mkcert -install
mkcert localhost
npm install -g serve

Build and serve locally through https:

VUE_APP_ENV=staging npm run build
serve -l 8080 -s dist --ssl-cert ./localhost.pem --ssl-key ./localhost-key.pem
node e2e_tests/server.js --secure

Analyze production build

npm run analyze

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your unit tests

npm run test:unit

Debugging

https://github.com/Microsoft/vscode-recipes/tree/master/vuejs-cli

Contributing

See CONTRIBUTING.md

frontend's People

Contributors

agdholo avatar izgzhen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.