Giter VIP home page Giter VIP logo

ramverk2-me's Introduction

Frontend för redovisa-sidan i kursen ramverk2

Build Status CircleCI Maintainability Test Coverage BCH compliance

Detta repo är ena halvan av min redovisa-sida. Detta är frontend-delen och är byggd med React och delvis stylad med Bootstrap. Det finns Docker-filer tillgängliga för att kunna köra projektet i olika målmiljöer.

Projektet bygger på scaffolding från Create React App.

Krav

  • Node
  • yarn
  • backend-API som är igång på den adress som anges i src/api.js

Installation

$ git clone https://github.com/emsa16/ramverk2-me
$ cd ramverk2-me
$ yarn install

Test

$ yarn test

Se även kommandon för att köra tester i Docker nedan.

Användning

$ yarn start    # Starta React i utvecklingsläge (testa på http://localhost:3000)
$ yarn build    # Bygg appen för produktion i katalogen build/
$ yarn deploy   # Bygg appen och för över filerna till produktionsservern (kräver SSH-autentisering)

Man kan välja att köra React i utvecklingsläge på en annan port än standardalternativet 3000, man behöver då skicka med environment-variabeln PORT.

Köra projektet i Docker

$ yarn docker-start     # Startar alla containers (se nedan)
$ yarn docker-stop      # Stoppar alla aktiva containers
$ yarn docker-build     # Bygger alla images nedan från respektive Dockerfile

$ yarn docker-node1     # node latest-alpine (testa på http://localhost:8030)
$ yarn docker-node2     # node 10-alpine (testa på http://localhost:8031)
$ yarn docker-node3     # node 8-alpine (testa på http://localhost:8032)

$ yarn test-node1       # Kör yarn test inuti node1-containern
$ yarn test-node2       # Kör yarn test inuti node2-containern
$ yarn test-node3       # Kör yarn test inuti node3-containern

BTH 2019

ramverk2-me's People

Contributors

emsa16 avatar

Watchers

 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.