Code Monkey home page Code Monkey logo

atlan's Introduction

Hiring UI DATA

Installation

 Node v12

Dependency Installation

npm i

Running Local Dev Server

npm run start

unit Test cases

unit test cases are added only 2 files but i can add for other files as well
npm run unit

unit test cases with sonar coverage

you have to start local sonar sever that can download from

https://www.sonarqube.org/downloads/
{directory where sonar in installed}./sonar.sh console


example -
./Downloads/sonarqube-6.7.7/bin/macosx-universal-64/sonar.sh console

OR follow

https://techblost.com/how-to-setup-sonarqube-locally-on-mac/

brew services start sonarqube

then we can run below command

npm run test:sonar-local

if wanted to see coverage without sonar

run below command and open index.html in browser inside tests/coverage/icov-report/index.html

npm run test:report

github repo

Backend Server

  • As a backend server i am using json-server deployed in heroku
  • Backend

Performance review, i prefer lighthouse

Tech

How to Run.

Open Homescreen Screenshot

Select query from textarea and click on submit query button to get result we can get more query from Backend Screenshot

Result page Screenshot

No Result page Screenshot

We can Apply sorting on field containing sorting icon. Screenshot

we can Apply sorting on any pages and result get sorted and we will be on same page instead of starting from page 1

Screenshot

Table in scrollable horizontal Alt Text

Query TextArea : textarea resize button is disabled. we have configuration of min(4) & max(15) rows for textarea if we crossed more than 15 rows we will get scrollbar in textarea.

Documentation

This project contains all other setup like

https apis call,
api request/response setup
proxy configuration to avoid CROS error
router
vuex store
responsive scss

it won't require any setup level changes we just have to mention backend api path and start with staging mode Let's see each of modules.

src

src module contains all the source code

api

if we need to have any backend api call we have mentioned define a method for that api and we can use that method inside action(vuex store)

assets

it contains scss and images that we have to use in code.

components

it contains all .vue components

config

this is place to define

static text
backend api path
that we are going to use in project

pages

it contains all the landing pages. TabsPage (route - http://localhost:10010/ ) to display Plugin Manager UI Home page

router

for configuring all the route and corresponding vue component to render.

store & plugins

this is place to define store modules and plugins and attach them with vuex

main.js & App.vue

Start of the project. vue app creation

.env

.env.{mode}

mode - development, production, staging

to configure some property based on environment

vue.config.js

to override or configure vuejs webpack configuration

build

contains dockerization and release build related code.

config.js
----------
to proxy backend api from localhost to avoid CROS error

index.js
--------
to run production build code in localhost environment
if we wanted to check how our build works we can use this to run code in local to see.
[ npm run build ] - (it will create build)
[ npm run preview ] - (it will run build code in local server)

License

MIT

atlan's People

Contributors

anand-tiwari avatar

Watchers

James Cloos avatar  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.