Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

alis-exchange/visual-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alis_ investments

Hi, welcome to the alis.exchange Visuals Workshop

Vue Component Template

This repo serves as a library for visualisation components that have been built previously for alis_ technologies LLC. Please feel free to look through the past projects in our Library to get inspiration. After completing the development of your project, your contribution will also be added to the Library. This allows you to showcase your work, and alis_ to access your work easily.

Technologies you will be using within the repo

Front end

We opted to use vue 2.x and not vue 3.x because we rely on and encourage the use of Vuetify components to decrease iteration cycle time, and speed up dev. For the same reason javascript is favoured over typescript.

Getting started

  1. Fork the template repo to your personal github.
  2. Clone the forked repo into your local environment.
  3. Install dependencies.
cd ./vue_component_template_repo
npm install
  1. Run the application locally.
npm run serve 
  1. Open the application locally at
http://localhost:3000/library
  1. Browse our community's past examples in the src/projectLibrary directory.

Developing your component:

  1. Create a folder in src/projectLibrary with your project ID as the folder name.
  2. You can add any files you need for your component in this directory.
  3. Add your component to the /dev router path in src/router/index. This enables you to render your component at http://localhost:3000/dev while you are developing/testing your work.
  4. Add a configuration object to the PopupResources constant in src/components/Popups/popup.config.js in order to represent your work in src/views/Library.
  5. Make commits in your forked repo.
  6. Make a pull request to the original repo and ask us to review the work once you have a first version ready. We will give comments on the pull request if any rework is required.

Guidelines

Material Design

  • For a consistent look and feel across the application, please comply with the guidelines layed out in the material design framework.

Layout

  • alis_ has built header and footer components. For consistency across the codebase, please do not alter our application layout.

State Management

  • Vuex is the tool of choice for state management across vue powered applications. A basic vuex store has been set up should you need it. There are code samples for informative and documentation purposes.

Vuetify

  • Vuetify offers a library of prebuild components that comply with material design standards. Where applicable, we encourage the use of these components to increase iteration speed.

alis_ Visuals Library

  • You will see our library of past visualisation components in src/projectLibrary You will also be making your addition here.

amCharts Library

  • We use the amCharts library for any data visualisation components like line charts, bar charts, etc.

Dependency Management

  • All the dependencies you need should be set up in this repo already. Please let us know if you would like to add or remove any of these dependencies. We are open to your ideas, but please keep things consistent otherwise :).

Available Scripts

Install Dependencies

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Dependencies

webpack-bundle-analyze:

Visualize size of webpack output files with an interactive zoomable treemap. (Take a look @ bundlephobia)

vue-fragment

Fragment component for vue.js

vue-router

Vue Router is the official router for Vue.js

eslint

ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code

eslint-plugin-vue

This plugin allows us to check the <template> and <script> of .vue files with ESLint, as well as Vue code in .js files.

vuetify loader

The vuetify-loader alleviates this pain by automatically importing all the Vuetify components you use, where you use them. This will also make code-splitting more effective, as webpack will only load the components required for that chunk to be displayed.

sass-loader

Loads a SASS/SCSS file and compiles it to CSS.

node-sass

Node-sass is a library that provides binding for Node.js to LibSass, the C version of the popular stylesheet preprocessor, Sass.

@amcharts/amcharts4

Chart library that we use for building any data visualisation type components.