Skip to content

g-s-m/mcki-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcki-challenge

Full stack app challenge

Assumptions

This solution based on the next assumptions not to complicate the task

  • No authorization
  • Don't use SSL or TLS, just HTTP
  • Backend doesn't use any DB to store reports(but can be easily modified to support DB)

Repository structure

├── back       - backend source code 
├── front      - frontend source code
├── LICENSE
└── README.md

Try this solution

This solution has been deployed in k8s cluster.
Go to http://159.122.178.101:30500/
To return to initial state of reports go to http://159.122.178.101:30500/reload

How to run locally

  1. Build frontend following instruction

  2. Build backend following instruction

  3. Run backend container using the following command

$ docker run --net=host -d --env BACK_HTTP_PORT=3000 --name mcki-back mcki-back:1.0
  1. Run frontend container using the following command
$ docker run --net host -d --env PORT=8080 --env BACKEND_ADDR=localhost --env BACKEND_PORT=3000 --name mcki-front mcki:1.0
  1. Open the page http://localhost:8080 in your browser

  2. Stop containers

$ docker container stop mcki-back
$ docker container stop mcki-front

About

Full stack app challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published