Giter VIP home page Giter VIP logo

nasa-apod-frontend's Introduction

Astronomica ๐Ÿช - NASA APOD Infinite Feed With Authorization

Introduction

This fullstack project made for better representation of NASA APOD API. APOD stands for Astronomy Picture Of the Day. Server logic located in this repo - nasa-apod-backend. Try this app live via GitHub Pages here.

Functionality

In this application I've implemented:

  • Infinite feed - when you scroll down to the end of the chunk (1 chunk - 10 posts) - another chunk will be loaded automatically
  • JWT authorization (token TTL is 1 hour), password encryption
  • Favourites section where you can store posts which you've liked, their identificators are saved in the DB (MongoDB) so they will be automatically refetched even if you will close this page and come back later
  • Responsive layout and hamburger menu for mobile devices
  • Show more / show less buttons for long posts and other small features for better UI / UX

This is how login and registration pages are look like:

login page

registration page

Infinite feed and favourites section:

feed page

favourites page

favourites empty page

Hamburger menu and warning for devices with small width:

hamburger menu

orientation warning

And you may see some warnings like these below if your token has expired or you were not authorized:

not auth feed

not auth favourites

Tech stack

  • React + TypeScript
  • Bulma + SCSS for interface and layout
  • ReactQuery (useQuery, useMutation)
  • Usehooks TS (useIntersectionObserver)
  • Axios

Future plans

  • Optimize feed, delete / hide content chunks which are far from current scroll position and fetch them again if necessary
  • Make UI developments

nasa-apod-frontend's People

Contributors

kr4chinin avatar

Stargazers

 avatar  avatar Ekaterina Dubogay avatar  avatar

Watchers

 avatar

Forkers

abhi9835004352

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.