GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cvrlnolan/image-uploader: A Next.js (TypeScript) solution for the Image Uploader Challenge on devChallenges

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
components
components
 
 
lib
lib
 
 
pages
pages
 
 
public
public
 
 
styles
styles
 
 
.env
.env
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.json
.prettierrc.json
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
next-env.d.ts
next-env.d.ts
 
 
next.config.js
next.config.js
 
 
package.json
package.json
 
 
postcss.config.js
postcss.config.js
 
 
tailwind.config.js
tailwind.config.js
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Image Uploader

A Next.js (TypeScript) solution for the Image Uploader Challenge on devChallenges.

Live demo (version) available at: https://image-uploader-taupe.vercel.app/

Description

This project was built to complete all the user stories listed or described by the challenge itself. Hence in this project, a user can:

  • Drag and drop an image to upload it
  • Choose to select an image from any folder
  • See a loader when uploading
  • Can see the uploaded image and copy it
  • Choose to copy to the clipboard

Installation

  1. To get this project files locally on your machine, you can clone this repository by running the following command on your terminal or command line:
git clone https://github.com/cvrlnolan/image-uploader
  1. Next, you need to setup the .env file found in the root with the appropriate API Keys & credentials from the following service providers:
  • Cloudinary (optional)
  • Google Firebase
  1. Install all the dependency packages found in the package.json file by running yarn install or npm install from the project root directory.

  2. Initialize tailwindcss by running npx tailwindcss init -p to generate the tailwind.config.js and postcss.config.js configuration files.

  3. To start the development server of the application, run npm run dev or yarn dev. This should log some start-up application information & display the development server url: http://localhost:3000. Visit http://localhost:3000 to view your application.

Usage

General

This application was built reflecting the MVC architecture and the main dependencies(all found in the package.json) of the application are organised as so:

  • Front-end User Interface(UI): Tailwindcss
  • File Storage: Firebase Storage

Other important services & dependency libraries of the application include:

  • react-dropzone: Simple React hook to create a HTML5-compliant drag'n'drop zone for files.
  • react-copy-to-clipboard: A copy to clipboard React component.
  • axios: An http client to fetch urls and make api calls or requests to the Cloudinary API.

Directives

The application is organized from the root(.) as follows:

  • ./page/ folder(integrated by NextJS) contains the UI Views for the application with the exception of the ./page/api/* sub-folder.
  • ./lib/ folder contains the Firebase initialization configuration file.
  • ./components/ folder contains coded UI layouts to be used through out the application.
  • ./styles/ folder(integrated by NextJS) contains the global style of the application in which Tailwindcss presets have been defined. The global stylesheet is accessible by all components.
  • ./public/ folder(integrated by NextJS) contains global files to be shared through the application. You can store static images here.

Absolute imports to any of these folders through the application are configured in the tsconfig.json file in the root.

Deployment

You may eventually want to deploy a live version of your app in a future instance. Vercel platform is suitably built fo the deployment of NextJS application and more as they have an integrated environment to deploy directly from your own Github Repository.

Support

If any worries, bugs or problem arises in the future, you can create an issue, contribute or contact me via:

  • [email protected]

License

GitHub

GitHub last commit GitHub contributors GitHub issues GitHub repo size

GitHub followers Twitter Follow

About

A Next.js (TypeScript) solution for the Image Uploader Challenge on devChallenges

image-uploader-taupe.vercel.app

Topics

cloudinary-apidevchallengesfirebase-storagenextjsreact-copy-to-clipboardreact-dropzonetypescriptvercel-deployment

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.