Code Monkey home page Code Monkey logo

normantle-frontend's Introduction

Normantle frontend

Frontenden for prosjektet Normantle.

For mer informasjon angående prosjektet se backendrepoet

Kom i gang

Manuell installasjon (developer mode)
  1. Klon repoet og last ned avhengighetene:

    • node.js
    • yarn
  2. Installer prosjektavhengighetene

yarn install
  1. Lag en kopi av filen env.example og gi den navnet .env. Bytt så ut URLen med en som peker mot din egen backend

  2. Kjør webappen

yarn dev
Docker (deployment)

Valgmulighet 1 - Bruke forhåndsbygget versjon

  1. Skriv denne kommandoen for å kjøre webappen.
docker run -d -p 3000:3000 --name normantle-frontend ghcr.io/lblend/normantle-frontend:latest

Her kan du så klart endre på variabler som du ønsker.

Valgmulighet 2 - Bygge et dockerbilde på egenhånd

  1. Klon repoet

  2. Endre navn på .env.example og endre på API_ROOT til å peke mot din backend.

  3. Bygg dockerbildet

docker build -t normantle-frontend .
  1. Lag og kjør en dockercontainer
docker run -d -p 3000:3000 --name normantle-frontend normantle-frontend

Merk deg her at om du har valgt å endre port i dockerfila, så bør det reflekteres her.

normantle-frontend's People

Contributors

lblend avatar

Watchers

 avatar

normantle-frontend's Issues

Result summary displaying the wrong word of the day in some cases

Since the acceptance threshold is set to 0.9 and above some words may be accepted although they're not the correct solution in of itself. While this is intentional, what is not is that the result summary screen will display the word that got accepted as the correct solution rather than the actual word

Example

image

The correct word in this case was kanne, hence it shows 999/1000 in the closeness rating

Refactor code

The whole codebase needs a refactor. It is utter fucking garbage. This issue only exists to remind myself to do so one day

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.