8000 GitHub - sofuxro/chanllenge
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sofuxro/chanllenge

Repository files navigation

Buspaket Challenge

Write a small vuejs app that submits the form below asynchronously. The “api-endpoint” accepts and emits json encoded data.

If there are errors when submitting the form, they should be displayed next to the corresponding form field based on the response from the server (assume the response has the errors for each form field). If the form submit is successful then display a success message above the form and reset it.

Introduction

  • For the Build version just access index_build.html
  • For the Dev version follow the installation steps

Main files to look for are src/components/form/ContactForm.vue and src/components/form/FormGroup.vue

Installing Dev

Get dependencies:

$ npm install

Get the development workflow and local server started

$ npm run dev

Techs (besides Vue2)

  • Webpack as the task runner. It handles the downgrading of ES6, module bundling, local server, watching changes in files, scss compilation, ... just to name a few.
  • Axios as the HTTP client (it is the official recommendation from Vue)
  • axios-mock-adapter replicating a communication with a server. Code found in src/main.js. It has (intentionally) a 0.9 sec delay to simulate a real server communication.
  • homer_admin-v2.0 I've tried to replicate the design by adding their css file, also using Bootstrap and some tweaking

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0