This project is part of an application called cotabox-fullstack-challenge, who is part of a practical test for a job opportunity. It works together with the api to perform actions over a MongoDB Database, using a web front-end.
This Front-End integrates with the API to retrieve and perform actions over the MongoDB database, this is an visual experience of the API, designed to be used by the clients.
A demo for this project is available on Vercel
https://cotabox-fullstack-challenge-frontend.vercel.app/
If you want to contribute, feel free to Clone this repository.
To start using it, yout need the API up and running on your computer/server (Follow this repo instructions). After this, follow these steps in the project directory:
In the src/services/api.js
file, put your server IP and PORT of running API on baseURL:
line, if you're not using an server and just running local, put 'http://localhost:3333'
on baseURL:
line, and save it.
Run yarn init
or npm init
Run yarn start
or npm start
to start the server (The page will reload if you make edits.). For production server, use yarn build
instead
Open http://localhost:3000 to view it in the browser.
With the project opened on your browser, you can use these functionalities:
NOTE: You need to fill the form with the First Name, Last Name and Contribution of contributor.
With this button, you add a new participant to the table of contributors.
NOTE: You need to fill the form with the First Name, Last Name of contributor.
With this button, you remove the participant of the table of contributors.
NOTE: THIS BUTTON WILL WIPE ALL THE DATABASE DATA
With this button, you remove all participants of the table.
The table will automatically update when you add or remove a participant, and shows the first name, last name, and % of participant contribution.
The chart shows a pie with the portion of the contribution of each participant, updating automatically on change.
- ReactJS (with Create React App);
- styled-components;
- Sweet Alert 2;
- axios;
Made with ❤️ ReactJS, and Styled Components by Lucas Augusto.