Git Product home page Git Product logo

web-frontend's Introduction

⚠️⚠️ This repository is archived and read-only. As of 2022, it was replaced with the new project. ⚠️⚠️

Ksi

This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.

Dev environment

Docker version

Getting working dev environment used to be problematic, because parts of the web still rely on deprecated libraries. For that reason, Dockerfile and docker-compose file were created to make it incredibly easier. Now, all you have to do is have docker setup (which is really easy) and run:

git clone https://github.com/fi-ksi/web-frontend.git
cd web-frontend
git submodule init
git submodule update

To build and start server run the following line. The first run will take ~10 minutes to install everything thats needed, each following build should take about ~15 seconds.

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 environment_selector=remote_dev docker-compose up -d --build ember_server
# DOCKER_BUILDKIT is used for building to dist folder. If you also use it for server container, it will use the existing cache.
# If you don't care about cache, the following should work just fine:
# docker-compose up -d --build

To build the version for test server and place it in dist folder run the following line. If you want to build for production server, use production instead of remote_dev.

DOCKER_BUILDKIT=1; environment_selector=remote_dev; rm -r dist/ || docker build --target build_dist_stage -o dist --build-arg environment_selector=$environment_selector .

Profit!

Docker on Windows - no auto rebuild

Just one small problem - on Docker for Windows notifications on shared drives/volumes are not fully implemented. That means watchman won't automatically rebuild. After every change you need to manually run the docker-compose up -d --build (or alternative) and do rebuild of the ember website. All docker things are cached, so only the website itself will rebuild.

Non-docker version

Prerequisites

You will need the following things properly installed on your computer. You also need compatible versions not only between those prerequisites, but also with libraries. We strongly recomend using the docker version, or at least looking to it's files to see which versions are used.

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • npm install
  • bower install
  • git submodule init
  • git submodule update

Running / Development

  • ember server
  • Visit your app at http://localhost:4200.
  • If you want to be able to access content from backend on test server (kyzikos) you either need to be in MU network or on the MU VPN. Also, kyzikos has CORS, so make sure that you access your local frontend on localhost:4200, not on 127.0.0.1:4200.

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Building

  • ember build --environment=production (production for ksi.fi.muni.cz)
  • ember build --environment=remote_dev (development for kyzikos.fi.muni.cz)

Deploying

  • Run ./deploy-ksi.sh to deploy at ksi.fi.muni.cz.
  • Run ./deploy-dev.sh to deploy at kyzikos.fi.muni.cz.

Conventions

  • We do not use tabs.
  • Tab = 4 spaces.

Further Reading / Useful Links

web-frontend's People

Contributors

horacekj avatar yaqwsx avatar borysekondrej avatar dee-gmiterko avatar xlauko avatar dependabot[bot] avatar krejdom avatar jiridanek avatar esoadamo avatar wormsik avatar effa avatar ember-tomster avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

Forkers

krejdom jiridanek

web-frontend's Issues

Veřejná profilová stránka

Teď při stejnocování organizátora a uživatele jsem narazil na jeden rest, který nám chybí - veřejná profilová stránka! Nikdy jsme se nedohodli, co na ní chceme - u orga je to jasné, levý sloupec (bez školy) a v obsahu seznam všech úloh, které kdy vyrobil.

A co chceme u řešitele? Rozhodně nechceme percentil, můžeme chtít skóre, achievementy, ročníky. A také asi nechceme seznam odevzdaných úloh. Nebude ta stránka prázdná?

Otázka do pranice pro @xlauko a @effa

Hrany v grafu

Hrany v grafe sa prekryvaju/ prechadzaju podo uzly

Vzhľad noviniek

Zmenšiť obrázky v prehľade, v konkreátnej novinke presunúť obrázok ku textu

Kategorie uloh v grafe

Vytvoriť rozlíšenie nových úloh (neriešených), vyriešených úloh, vypnutých úloh.

Opravit vytvareni vlakna na foru

pri vytvareni vlakna na foru dojde ke spravnemu zaslani pozadavku POST s daty:
{"thread":{"title":"Test","unread":null,"posts_count":null,"root_posts":[null]}}
ktera bohuzel neobsahuji text prispevku...

dale nefunguje pri ukladani dotaz na server pro ID noveho vlakna a tudiz se bez refreshe stranky rozklikne vzdy URL /forum/null

Očesat menu TinyMCE

Bylo by vhodné nepotřebné položky menu (jako načíst/uložit a jiné) vyházet z editoru.

O KSI

O KSI sekce na hlavní stránce je zbytečně velká a obsahuje málo informací (řešitel se reálně nedozví nic)

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.