Code Monkey home page Code Monkey logo

sap-archive / devtoberfest-2021-frontend-coding-challenge Goto Github PK

View Code? Open in Web Editor NEW
6.0 10.0 62.0 26.33 MB

The sample in this repository has "built-in" performance flaws for you to discover and fix during the Frontend Week Coding Challenge as part of devtoberfest.

Home Page: https://sap-samples.github.io/devtoberfest-2021-frontend-coding-challenge/

License: Apache License 2.0

JavaScript 79.60% CSS 1.61% HTML 18.79%
sample devtoberfest sapui5 openui5 hackathon performance

devtoberfest-2021-frontend-coding-challenge's Introduction

Important Notice

This public repository is read-only and no longer maintained. For the latest sample code repositories, visit the SAP Samples organization.

Devtoberfest 2021 Frontend Week Coding Challenge

Build Status Open in Visual Studio Code License Status REUSE status

Description

This is the Devtoberfest 2021 Coding Challenge of week 6. The repository contains a web application that displays all current services available on the SAP Business Technology Platform:

Running app in light mode

Unfortunately, this app doesn't have the best loading performance. The Lighthouse performance score is way below the achievable 100 points. Luckily, this is not the fault of the framework used but happened due to a bad implementation and disregard of common best practices. It’s up to you to fix this web application and to push the performance score above 70.

Do you want to jump directly to one (possible) solution? Then go here πŸ‘ˆ.

Possible areas where you can achieve performance boosts are:

For more details, watch this video:

Video Preview

Requirements

Node.js LTS version 14 is installed: https://nodejs.org/en/download

Contributing / Submitting your Proposal

This challenge already ended but feel free to complete it just for fun anyway πŸ™‚.

  1. Fork and clone this repository

  2. Turn GitHub Actions on for this repository to allow the included workflows, e.g., to build the web app on every push.

  3. Turn GitHub Pages on as well to host the improved web app there.

  4. Install all dependencies

    npm install
  5. Start a local server and run the application (http://localhost:8080/index.html)

    npm start
  6. Trigger the Lighthouse Performance Scoring (e.g. with Google Chrome)

  7. Optimize the app until the performance score is above 70.

  8. Commit and push your edits

    git commit -am "Fix performance issues"
    git push
  9. Create a pull request and make sure your web app is exposed as with GitHub Pages and available under https://${{ Your GitHub User }}.github.io/devtoberfest-2021-frontend-coding-challenge/. Our CI/CD actions will take it from here and let you know if your app passed the test.

    GitHub Pull Request

In case you still have questions: Check out this video where I create an example contribution.

It is sufficient if your PR earns the green "passed" label and you entered your SAP Community ID in the pull request after the label was assigned.

Challenge Rules

This challenge already ended but feel free to complete it just for fun anyway πŸ™‚.

  1. You only need to send modifications to the content in the /docs and /webapp folders and possibly the package.json. You should not need to modify any other files in this repository (especially not the .github folder).

Do you want to jump directly to one (possible) solution? Then go here πŸ‘ˆ.

Download and Installation

Getting started

  1. Clone this repository and navigate into it

    git clone https://github.com/SAP-samples/devtoberfest-2021-frontend-coding-challenge
    cd devtoberfest-2021-frontend-coding-challenge
  2. Install all dependencies

    npm install
  3. Start a local server and run the application (http://localhost:8080/index.html)

    npm start

Testing

Start the Karma Test Runner with the UI5 Plugin and execute the tests sh npm test

How to obtain support

This content is provided "as-is" with no other support.

Known Issues

This project got a terrible Lighthouse performance score. As part of this coding challenge, it's up to you to improve this web app.

License

Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0, except as noted otherwise in the LICENSE file.

devtoberfest-2021-frontend-coding-challenge's People

Contributors

btbernard avatar iobert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devtoberfest-2021-frontend-coding-challenge's Issues

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.