Skip to content

A ground-up rework of the original picture sorting project. Allows the user to upload pictures, tag them according to content, and define custom rule sets to semi-automate the process. This version also uses TypeScript and SCSS.

Notifications You must be signed in to change notification settings

anthonyj-codestuff/pic-tagger-react-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PicTagger v2

A complete rework of a project I did in school. I was proud of it at the time, but it was janky, slow, and destroyed databases with exponential growth. This project aims to fix all of that and even add a fresh coat of paint Created with 'create-react-app' + typescript Also I'll probably learn SASS while I'm here Bootstrapped with create-react-app + typescript

SETUP

On the Hosting side:

Database and Storage

Secrets

Build Pipeline

[TODO: Go back and check all of this from square 1]

PROJECT_ID=$(gcloud config list --format='value(core.project)')
PROJECT_NUMBER=$(gcloud projects describe $PROJECT_ID --format='value(projectNumber)')
gcloud projects add-iam-policy-binding $PROJECT_ID \
    --member=serviceAccount:$PROJECT_NUMBER@cloudbuild.gserviceaccount.com \
    --role=roles/run.admin
gcloud iam service-accounts add-iam-policy-binding \
    $PROJECT_NUMBER-compute@developer.gserviceaccount.com \
    --member=serviceAccount:$PROJECT_NUMBER@cloudbuild.gserviceaccount.com \
    --role=roles/iam.serviceAccountUser
  • If you intend to run the code locally, create a service-account token with Storage Admin permissions and save it the your development machine

  • Trigger a build. It should build successfully and create a new container in the container registry

  • From the Container Registry, find the latest image and select Deploy to Cloud Run

    • service name pic-tagger-v2-node
    • Deploy one revision from gcr.io/pic-tagger-v2/server:latest

About

A ground-up rework of the original picture sorting project. Allows the user to upload pictures, tag them according to content, and define custom rule sets to semi-automate the process. This version also uses TypeScript and SCSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published