Git Product home page Git Product logo

another's Introduction

Image Upload PWA Example

This project, image-upload-pwa-example, is a modern web application built using React, TypeScript, and Vite. It's designed as a Progressive Web App (PWA) and allows users to load and save images to IndexedDB from their camera roll or directly from their camera. For a true PWA experience, it is configured to be served over HTTPS, even in development, using https-localhost.

Getting Started

These instructions will guide you through setting up the project on your local machine for development and testing purposes.

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/snowball-tools/image-upload-pwa-example.git
    cd image-upload-pwa-example
  2. Install the dependencies
npm install

Running the Development Server over HTTPS

This project uses https-localhost to serve content securely during development. To start the development server with HTTPS enabled, use the dev:https script:

npm run dev:https

After starting the server, open https://localhost in your browser to view the app. https-localhost ensures the local development certificate is trusted by your browser, facilitating the testing of PWA features that require HTTPS, such as service workers and secure context features.

Features

  • React for building user interfaces with a component-based architecture.
  • TypeScript for static type definitions, enhancing development experience and code quality.
  • Vite for ultra-fast development and bundling, leveraging modern web technologies.
  • PWA setup for offline support, background sync, and installability, with a secure HTTPS development environment provided by https-localhost.

Building for Production

To build the app for production, run the following command:

npm run build

This will generate a dist directory with your compiled assets, ready to be deployed.

Deployment

Refer to the Vite Deployment Guide for specific instructions on deploying your application to popular hosting providers.

License

This project is licensed under the MIT License.

another's People

Contributors

afdudley 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.