Solution to the developer evaluation challenge. Vue/Vite.
Diego Ramos Rios diegoe.ramosrios@gmail.com
- Vue
- Vuex
- Docker
- Docker-compose
- Vite
- Tailwindcss
- User: admin@example.com
- password: Password123!
Copy .env.example
to .env
and set all values.
NODE_ENV
: Environment. Valueslocal
ordevelopment
.PORT
: The application port exposed.
DOCKER_DB_PORT
= The port of docker database containerDOCKER_APP_PORT
= The application port exposed in docker container.
The endpoint descriptions are defined with swagger in the /api/docs local or with docker /api/docs
Using Makefile on Windows It should be remembered that if you are on Windows the makefile file will work by installing the following tools
- MSYS2
- Cygwin
- MinGW
- WSL
- Git Bash
$ docker compose -f ./docker/docker-compose.local.yml --project-directory ./ -p vue-vite down
$ docker compose -f ./docker/docker-compose.local.yml --project-directory ./ -p vue-vite build --no-cache
$ docker compose -f ./docker/docker-compose.local.yml --project-directory ./ -p vue-vite up -d db app
Run the command to build docker images:
$ make run-local
To run the tests you must execute:
$ make tests
or
$ make test-coverage
What I did was separate the design (layout) of the page and the components. Inside components, I can use Vue tools like slot to manipulate components inside others.
For Example