About the project • Getting Started • Usage • Test • Documentation
Mini-project developed for an application.
Table of Contents
This simple app offers a table of training exercises related to cybersecurity and the correct use of new technologies. The user can click "Go!" to complete one training exercise and will randomly win or lose. Easy, right ?
Clone down this repository.
You will need node and npm installed globally on your machine.
npm install
To launch the project, you'll first have to start the server with this command:
npm start
Then, you'll be able to visit the app at:
localhost:3000
.
├── src . » Project source code
| |
| ├── layouts » Layouts of the projet (Header, Body, Footer)
| |
| └── components » Several components including ui elements such as Button, Category Column and Status Column
|
├── public » Public assets
|
├── assets » Logo and screencapture of the project for the README.md file
|
├── README.md » Current file
|
├── package-lock.json
|
├── package.json
|
├── tailwind.config.js » Tailwind configuration file
|
└── .gitignore
To run tests, run the following command:
npm test
Then, press:
a
It will launch the following tests:
- the home page should render a heading, a logo and a table;
- the "Go!" button should be clickable;
- the table should have four columns (one for button included);
- the table should have the correct column headers titles;
- clicking the "Go!" button should decrease the number of trainings to start;
- clicking the "Go!" button should increase the number of trainings won or defeat;