GithubHelp home page GithubHelp logo

nepet / quizlord-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielemery/quizlord-client

0.0 0.0 0.0 680 KB

Simple web application to share newspaper quizzes between friends, including scores and stats

Home Page: https://quizlord.net

License: MIT License

JavaScript 1.89% TypeScript 95.90% CSS 0.10% Nix 1.12% HTML 0.71% Dockerfile 0.27%

quizlord-client's Introduction

Quizlord Client

Simple PWA to share newspaper quizzes between friends, including scores and stats

Local Development

Doppler is used to provide access to secrets, in order to run the app you first need to run

  • doppler login
  • doppler setup

Using Nix

If using nixos a flake file is provided to load a shell with all the required dependencies.

nix develop

Bootstrap project

npm ci

Run project

npm run dev

Test Docker Image Locally

# Perform a local production build
npm run build
# Build a local image tagged with local
docker build -t quizlord-client:local .
# Run local build using the env file
docker run -p 3000:80 --env-file <(doppler secrets download --no-file --format docker) --name=quizlord-client quizlord-client:local
# Cleanup
docker rm quizlord-client && docker image rm quizlord-client:local

Test Helm Locally

  1. You first to have a local k8s cluster running.
  2. Ensure doppler is setup with doppler setup
  3. Install the doppler operator as described https://docs.doppler.com/docs/kubernetes-operator
  4. Create the doppler token secret
    kubectl create secret generic doppler-token-quizlord-client-secret \
    --namespace doppler-operator-system \
    --from-literal=serviceToken=$(doppler configs tokens create doppler-kubernetes-operator --plain)
  5. Create the destination namespace with kubectl create namespace quizlord
  6. Create the doppler secret with kubectl apply -f .k8s/doppler-secret.yaml
  7. Create the registry pull secret kubectl create secret docker-registry registry-github-quizlord --docker-server=ghcr.io --docker-username=danielemery --docker-password=REPLACE_ME --docker-email="[email protected]" -n quizlord
  8. Install using local chart
    helm install -n quizlord quizlord-client ./helm
  9. Cleanup
    helm uninstall -n quizlord quizlord-client

quizlord-client's People

Contributors

danielemery avatar dependabot[bot] 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.