/nasa-apod-backend

Backend for Astronomica - NASA APOD infinite feed with authorization project.

Primary LanguageJavaScript

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. Client (frontend) logic located in this repo - nasa-apod-frontend. Try this app live via GitHub Pages here.

Server deployed to Heroku, here is the link.

Functionality

  • JWT authorization (token TTL is 1 hour), password encryption
  • Data (username, password, favourite posts IDs) is stored in the non-relational database
  • Client communicating with server via REST APIs
  • Password and username validation (length, not empty etc.)

Tech stack

  • Javascript + NodeJS
  • MongoDB + Mongoose
  • Express, express-validator
  • Jsonwebtoken (JWT)
  • Bcrypt (for password salty hashing)
  • Axios

This is how feed looks like, for more screenshots and information check nasa-apod-frontend README: