Giter VIP home page Giter VIP logo

chernivtsi-transport's Introduction

SWUbanner

chernivtsi-transport's People

Contributors

aemchuk avatar bdvorianov avatar denysdovhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chernivtsi-transport's Issues

Monorepo

Right now I these possible subapps:

  • app โ€” for app
  • api โ€” for API

Add code formatting

  • Add Prettier
  • Add lint-staged
  • Add husky
  • Add pre-commit hook with formatting
  • Add ESLint

Decouple API into separate folder

Right now we have our server-side code in root directory. I'd like to keep root directory for configs only. Let's move our server-side code to api folder.

Implement data layer

Implement abstraction called DataLayer which have to:

  • Be a man-in-the-middle between API services and express routes.
  • Recurrently fetch data from APIs and send this data to subscribers
  • Keep track of subscribers and fetch data when it has at least 1 subscriber
  • Fetch data on demand (by routes like /routes, /trackers)
  • Store access token for transport.cv.ua and refetch this token when a request fails.

Use TypeScript

Right now I see use these use-cases:

  • Describe routes and trackers

Use React on client side

Rebuild app as a React application.
Scaffold with create-react-app.
Reimplement everything we already have as a React app.

Add preloader

Show loader when:

  • routes and trackers are fetching
  • there's no data to display

Fetch routes and cache them on client side

We need to fetch routes and keep them on a client.
We also need to match trackers against routes to show correct route number and other information.

Probably use reselect for memoization and composition.

Better styles for map

Right now we're using OpenStreet maps with their styles. They have a lot of useless objects like power lines, hospitals, etc. We need to have custom styles and display only necessary objects.

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.