Clone the repository by running the following command:
https://github.com/NicMa1129/engineering-assessment.git && cd engineering-assessment
Once you've cloned the repository install the required dependencies:
yarn
To run the project in development mode run:
yarn start:dev
To run the project in production mode run:
yarn build
yarn preview
To run unit tests run:
yarn test
After yarn build
, under dist
directory are the final production files, you can access them under nginx
server
To deploy the project in docker image run:
make
make run
After the command make
is executed, two images files are generated. food_trucks_web
is web server image. food_trucks_web_unit_tests
is the image to run unit tests.
To run unit tests in docker image run:
make unit-tests