Coder Social home page Coder Social logo

rowinruizendaal / progressive-web-apps-2021 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmda-minor-web/progressive-web-apps-2021

1.0 1.0 0.0 69.88 MB

The course Progressive Web Apps is about learning to build server side rendered applications. Progressive Web Apps is part of the half year minor programme about Web Design and Development in Amsterdam. Bachelor Communication and Multimedia Design, Amsterdam University of Applied Science.

Home Page: https://deezer-carousel.herokuapp.com/

License: MIT License

JavaScript 31.52% CSS 40.72% EJS 27.76%

progressive-web-apps-2021's Introduction

Hi there ๐Ÿ‘‹

https://github.com/RowinRuizendaal/github-readme-stats https://github.com/RowinRuizendaal/github-readme-stats

Tech and Tools

Current favourites

Svelte Vue.js Nuxt.js Node.js

Other tools I use

React Html5 CSS3 Javascript Figma Sass MongoDB Express Python

"The best error message is the one that never shows up."

Racoon

trophy

progressive-web-apps-2021's People

Contributors

decrek avatar joostf avatar koopreynders avatar rowinruizendaal avatar

Stargazers

 avatar

Watchers

 avatar

progressive-web-apps-2021's Issues

Code review week 1

Yo Rowin!

Goed dat je hebt gedacht aan deployen, alleen gooit ie een error. Even naar kijken misschien ;)

Wat je readme betreft, ik denk dat je heel veel kan gebruiken uit je WAFS readme, maar niet alles. Kijk wat relevant is. Dingen die je kan toevoegen zijn: Een stukje over je packages. Welke packages gebruik je en waarom? Beschrijf dit en een linkje naar de npm docs zou niet misstaan. Hetzelfde geldt voor je scripts. Momenteel heb je er twee die redelijk voor zichzelf spreken, maar als je er meer aan toevoegt, is het handig om even te omschrijven wat voor keuzes je hebt gemaakt en hoe je script chain in elkaar steekt.

Goed dat je je routes hebt gescheiden, alleen zou ik ze even in een variable zetten, zo hou je je requires gescheiden van de rest van je code en het wordt wat duidelijker.

Je templates zijn netjes gescheiden, goed bezig!

Kijk nog even naar wat meer tooling. Als je geen idee hebt, kijk even bij je teamgenoten en zoek op wat ze gebruiken.

Succes!

Converting WAFS to server-side rendering

Feedback on converting to server-side rendering

General feedback regarding assignment

  • โœ”๏ธ Website is deployed server side on Heroku, and is functioning
  • โœ”๏ธ Used Express router to split routes, you understand how Express works
  • โš ๏ธ Could look into some more tooling

Some things I think can be easily resolved

  • I would recommend sticking to English variable names if the rest is all English:

    if (json && !json.error) {
    const leeg = [];

  • If you want to write more ES6 code, it might be worth looking into something like Babel to be able to convert this to 'import' and 'export':

    const express = require('express');
    const router = express.Router();
    const axios = require('axios');

  • You're mixing async await & promise.then here, you only need to use one of them. Since it's already an async function, you can just use the await:

    json = await axios.request(options).then(function(response) {
    data.push(response.data);
    return response.data;
    }).catch(function(error) {
    console.error(error);
    });

I've seen this multiple times in your code, you're doing double syntax which is unnecessary.

  • I think it would be more neat to do the require/import at the top here:
    app.use(require('./routes/router'));

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.