This is a take-home test project for building a simple login and dashboard screen for a SaaS platform targeting small FMCG (Fast-Moving Consumer Goods) brands. The project utilizes React, Vite, Vitest, React Router DOM, Tailwind, and Jotai technologies. The application is built with TypeScript to ensure type safety and reliability.
The project follows a common directory structure for a React application. Here is a brief overview:
/public
: Contains the public assets and the HTML template file./src
: Contains the source code of the application./atoms
: Contains the Jotai atoms for state management./components
: Contains reusable components used throughout the application./pages
: Contains the login and dashboard screens./assets
: Contains the static assets, like images./hooks
: Contains the custom hooks of the application./config
: Contains the configuration files for the application./utils
: Contains utility functions.App.tsx
: The main entry point of the application.vite.config.ts
: Configuration file for the Vite build tool.tsconfig.json
: TypeScript configuration file.To run the project locally, follow these steps:
git clone https://github.com/sammarxz/friendly-octo-carnival/tree/main
cd friendly-octo-carnival
npm install
ou yarn
npm run dev
or yarn dev
This project is a basic implementation of the login and dashboard screens for the SaaS platform. Here are some potential improvements and next steps to consider:
In this project I had the privilege of getting to know and testing new technologies such as Jotai itself and its atomic state management style and the use of Rome as a replacement written in Rust for Eslint + prettier.
Enjoy coding!