/README.md (c186961772400b47ceb1ece2b46323687112cb13) (2035 bytes) (mode 100644) (type blob)

# nasa test application

Nasa test application

## Build docker

### On GNU/Linux and Mac

use ./build script from root folder

### On Windows

build images from the docker folder and map the source of the application to the src from root folder

## Run on local

### On GNU/Linux and Mac

- if you use the ./build script open localhost:8080
- if you build in another way follow the port forwarding

### On Windows

- follow the port forwarding after image is run

## Run images manually

### On GNU/Linux and Mac

If you do not follow build till the end you can ./run and follow the steps

### On Windows

Run manually mysql image and app/server image you build in the previous step

## Starting containers

- docker ps -a
- start mysql-server
- start dev-server

## Installing db

It shall be automatic on dev-server start - it takes time for the first run, so be patient

If it does not run automatically by some reason in dev-server in /nasa there shall be a ./nasa-start
If errors occured they shall be in /nasa/nasa.initialization.log
While waiting you can tail -f /nasa/nasa.initialization.log

## DB

For now it's with mysql - mongo is not supported with php 7.1 and the ports were not working
at the moment of implementation. Did not want to waste time on this so I can provide solution
faster. If mongo is required will downgrade php or try to patch something to make it work.

Current implementation is almost always with doctrine - so mongo in case it works shall be
pretty smooth transition. Best Month and Best Year are done right now with pure sql just
to show off - in case of mongo they can be done in a generic way or with pure js inside
mongo queries.

## Commands

- bin/console neo:import:lastThreeDays - gets the latest 3 days
- bin/console neo:import:variableDays <int> - gets as many as you want

## Access dev-server

docker exec -it dev-server bash

or if you created it without ./build script

docker exec -it <image> bash

## Run tests

- enter bash in dev-server
- enter nasa in /var/www/html
- run phpunit

Mode Type Size Ref File
100644 blob 11 b8372e6f3e55d70bea16af8b9b57a1f11cc89b11 .gitignore
100644 blob 1210 cf1ab25da0349f84a3fdd40032f0ce99db813b8b LICENSE
100644 blob 2035 c186961772400b47ceb1ece2b46323687112cb13 README.md
100755 blob 721 df2bdb1e793b6970ed8b7ff3210f1ef3650b1c43 build
040000 tree - 2cc458de5b4f9342021c76c1d6a33af73fdcf2f3 docker
100755 blob 1841 f453bc572c48774df7f148fd4b3e73eb913f9c05 run
040000 tree - f7a6205856a0492ba858dd4a165ce02570bb0a26 src
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/ranapat/nasa

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/ranapat/nasa

Clone this repository using git:
git clone git://git.rocketgit.com/user/ranapat/nasa

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main