Skip to content

leokolezhuk/electric-vehicle-portal-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViriCiti Vue Assignment


This repository holds the ViriCiti Vue assignment. In this project you will find the description regarding the assignment for you to do. This assignment represent what we do on a day to day basis. We receive raw data from vehicles store it on database then send it to browser app via web socket.


Getting Started

First of all, fork the repository at:

https://github.com/viriciti/vue-assignment

Then open up your terminal and clone the forked repository

Replace [YOUR_USERNAME] with your name

git clone https://github.com/[YOUR_USERNAME]/vue-assignment.git

Enter the directory

cd vue-assignment

Install all the dependencies

npm i

Run the app

npm start


The Assignment

We have provided you with a starter kit that broadcast vehicle data via web socket. You can find the HTTP server on src/server/app.js, it's a bare minimum setup containing an express server to serve HTML page and ws server that broadcast raw data. What you need to build is a front end application that should look like below:

The whole front end application should be build with Vue.js, but you're free to choose how it's build and composed. Data that are needed to render all those component is provided via the web socket connection.

As you can see in this repository there are no webpack configuration and frontend server. You're free to create your own configuration, maybe you want different config for production and development.

Get Creative!

You can also extend the functionality for both front end and back end of the application. For example, making a more informative front end or incident for vehicle that went to fast on the road (this can be done both in the front end and back end, double points for back end implementation ;) )

The data

On websocket stream the data should look like this:

{
  time: 1511512585495,
  energy: 85.14600000000002,
  gps: ["52.08940124511719","5.105764865875244"],
  odo: 5.381999999997788,
  speed: 12,
  soc: 88.00000000000007
}
  • time - Unix timestamp of the moment the datapoint was recorder
  • energy - Energy used in kWh
  • gps - Latitude and longitude where the datapoint was recorded
  • odo - The distance driven in km
  • speed - The speed the vehicle was going in km/h
  • soc - The state of charge (battery) of the vehicle in %

Read up material

Looking to level up your knowledge and skills? These are some good articles/courses that you can check out.

General

Questions

If you have any questions about the assignment or project setup feel free to contact us at e.tamames@viriciti.com or s.surur@viriciti.com. You can also come by the office. We're always ready to help.

Good luck with the assignment!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 58.2%
  • TypeScript 23.3%
  • JavaScript 15.4%
  • HTML 2.4%
  • Pug 0.7%