Giter Club home page Giter Club logo

space-gallery's Introduction

About

space-gallery is a small app designed to nicely format images from NASA's Astronomy Picture of the Day API. Each image's page is statically generated with Next.js, thus allowing shareable links with the appropriate meta tags.

It was built for the Summer 2022 Shopify Frontend Developer Intern application.

Try it out

The project is currently hosted at https://space-gallery.vercel.app/

Features

  • Responsive design, works on mobile
  • Statically generated
  • Shareable links to each image
  • Pagination / fetch more images
  • Like button for images (persisted locally)
  • Open Graph tags for SEO and link previews
  • Dark mode

Screenshots

Home page Image page

Built with

  • Next.js
  • Chakra-UI
  • react-query
  • Phosphor Icons

Getting started

Make sure your Node.js is at least version v14.16.1.

Once you cloned this repository and navigated to the root directory, install the dependencies:

npm install

Now, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying src/pages/index.ts. The page auto-updates as you edit the file.

The file for fetching images is src/api/apod.ts. Make sure to replace the API Key in this file with your own.

Deployment

Run the build script to generated a production optimized build.

npm run build

For easier deployment, I recommend hosting the project on Vercel. You can link your GitHub repository and it will automatically create a deployment for every push.

space-gallery's People

Contributors

kevinlu avatar

Watchers

 avatar

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.