Giter Site home page Giter Site logo

edusik / bees-challenge Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.51 MB

🐝 Front-end challenge made for the BEES Company

Home Page: https://bees-challenge-front.vercel.app

HTML 2.64% TypeScript 97.13% Shell 0.24%
bees ambev ambevtech challenge react front-end typescript

bees-challenge's Introduction

🐝 BEES Front-end Challenge

BEES front-end challenge made using React.

Vamos juntos nessa transformação!

πŸ–΅ Preview

Application

Application Preview

API Error

API Error

Cypress

Cypress Preview

🎨 Design

The user interface of this project was based on this Figma.

πŸ’» Technologies

This project uses these technologies:

πŸ”— Endpoint [API]

⌨️ Commands

Install Dependencies

npm install

Run Project

npm start

Run Unit Tests

npm run test

with percentage covered

npm run test -- --coverage --watchAll=false

Run Cypress Tests

npx cypress open

πŸ‘¨β€πŸ’» Solution

πŸ“ Folder Structure

β”œβ”€β”€ _src
β”‚   β”œβ”€β”€ _components
β”‚   β”‚   β”œβ”€β”€ _Example
β”‚   |       β”œβ”€β”€ Example.spec.tsx
β”‚   |       β”œβ”€β”€ Example.tsx
β”‚   |       β”œβ”€β”€ ExampleStyled.ts
β”‚   |       β”œβ”€β”€ index.ts
β”‚   └── models
...

General Decisions:

  • I used semantic commits since the beginning of the project, something I've been doing for a while;
  • I chose to use sass together with styled components (just personal preference);
  • I chose to use the TypeScript as well as type all the props and states of my components;
  • I used the svg icons provided in the Figma template;
  • I decided to use zustand to save the full name due to the ease of the lib;
  • Also, I added a minimum of 7 and limit of 32 characters in the full name field;
  • I added a field called tag to the company object, as well as an icon when adding a new tag;
  • I added a minimum limit of 14 characters in new tag;
  • I added a loader with css animation and an error message if the API fails;

Critique

Improvements:

  • Dynamic Loading of data showing more as you reach the bottom of the page;
  • Implement an SVG image component to all icons;

Although they are not mentioned in the challenge, I believe these would be good improvements:

  • Persist the modified data in some way, perhaps using localStorage;
  • Don't let unnamed users see the companies page;
  • Error message if the new tags are outside the stipulated limit;
  • Make the delete company and add tag actually real using an API;

Notes:

  • I hope you like the result πŸ˜….

Developed by Eduardo Dusik

bees-challenge's People

Contributors

edusik avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.