Giter Site home page Giter Site logo

patriq94 / spicaapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 573 KB

A front-end SPA application built with Angular. It uses access tokens to authenticate with the Time API service for data retrieval and Angular Material for UI.

JavaScript 4.12% TypeScript 65.48% CSS 4.99% HTML 25.42%

spicaapp's Introduction

ŠpicaApp

AboutPrerequisitesBuild and runHow to test

About

A front-end SPA application built with Angular. It uses access tokens to authenticate with the Time API service for data retrieval and Angular Material for UI.

This app is a result of a task given by Špica but it can also be used as a reference implementation for future projects.

Prerequisites

You will need the following tools:

Build and run

  1. Create a folder on local computer to clone the repo, something like C:\source will be fine.

  2. Open cmd within newly created folder and clone the SpicaApp repository from Github.

    git clone https://github.com/PatriQ94/spicaapp.git
  3. Move to the root directory and install npm packages.

    cd spicaapp
    npm install
  4. Run the application.

    • For development and testing purposes:

      ng serve
      
    • For production:

      ng build
      

      The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

  5. Hit Windows Key + R to open the Windows Run window and run the following command:

    chrome.exe --user-data-dir="D:/Chrome dev session" --disable-web-security

    run

    This command will open up Google Chrome with disabled web security. This is a workaround to bypass CORS protection required by Time API.

  6. Launch http://localhost:4200 within the Chrome opened in the previous point.

How to test

Once the application is up and running we are presented with the default - settings page.

Settings

Here we need to set a new access token in order to utilize other pages. The token gets automatically saved to the local storage upon changing the input field. We can also the token from local storage by simply pressing the Remove button.

One the token is set we can visit the other two pages, one of which is the users page.

users

On this page we can see the full list of users provided by the Time API. We are also provided with the options of refreshing the list, filtering the table by keywords through the filter field positioned above the table, as well as adding new users to the database as we can see on the image below.

newUser

The second page we can visit is the presence page, which allows us to see which users are currently present.

presence

Here we are provided with the options of refreshing the list of users, as well as checking the "Reload" check box, which will result in Time API recalculating presence information rather than using the cached ones.

spicaapp's People

Contributors

patriq94 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.