This project was created as a platform for drawing names for my family's secret santa gift exchange.
- TypeScript - For type safety and other awesome features not native to vanilla JavaScript.
- SASS - CSS extension language for CSS nesting, mixins, variables, modules and inheritance.
- BEM Methodology - Methodology for naming and organizing CSS selectors and HTML elements.
- Vuex - Vue.js library for state management.
Note: Images used in the project and designs are not my own.
To run the project, first copy the example variables into a .env.[mode].local file with command: cp .env.example .env.[mode].local. The modes available are documented here. You will then need to modify the following environment variables in the .env.[mode].local file for the frontend to run:
-
VUE_APP_NAME- Name of the application -
VUE_APP_URI- URI for the application -
VUE_APP_API_URI- URI for the REST API(randomuser.me already preselected)
Clone the project
git clone https://github.com/peterkitonga/kusewaexchGo to the project directory
cd kusewaexchInstall dependencies
npm installStart the server
npm run serveTo run with docker simply run the command docker-compose up -d. This will create a container by the name kxch exposing a port 8080. Visit http://127.0.0.1:8080 to view the app running.
Install dependencies first
npm installTo deploy this project run
npm run buildTests are written in Mocha, Chai under the tests directory and uses istanbul for coverage reports. To run tests, run the following command
npm run test:unitTo run and view coverage reports for the tests, you will need to run two scripts in sequential order
npm run test:coverage ; npm run test:viewLinting is configured with eslint and prettier. You are free to configure it to your liking using the configuration file .eslintrc.js.
To check for and fix linting errors, run
npm run lintSee configuration reference here for further customization