Skip to content

It's a alternative application, like the old "orkut", with auth forms, and a profile dashboard.

Notifications You must be signed in to change notification settings

okumura-e/projeto-compass_uolkut

Repository files navigation

UOLKut PB Challenge

✏️ Description

It's a alternative application, like the old "orkut", with auth forms, and a profile dashboard.

💻 How to run

After you clone the repository and do a npm i command to install all the required packages, it's only have a few more steps to run the application correctly.

In this project we used a fake rest api made with json-server, and the only command you need to run to server is npm run server, it'll execute a custom script, make sure to run this command before start the project, if you don't do this, the project will not run correctly.

After this you can run a simple npm run dev in another terminal and the project will execute normally.

📱 Main Techs

🎆 Extra Techs

  • React hook form
  • React Hot Toast
  • Json Server
  • Axios

📄 Pages

  • FormPage - The pagination in this page it's made with 'Outlet' component from the react-router-dom, so when you change the "url", the only page part that changes it's the form
  • Profile Page
  • Edit Profile Page

📁 Project Structure

├─── public
├─── src
│   ├─── api: Contains only the `db.json` file, the entire api runs by script
│   ├─── components
│   ├─── assets
│   ├─── config
│   ├─── context
│   ├─── hooks
│   ├─── interfaces
│   ├─── styles: Contains files like global styles and global theme
│   ├─── templates: Contains the pages files
│   └─── utils

✨ Extra Features

  • Login and register forms with real authentication
  • Dynamic Data in profile with Context API and Session Storage
  • Responsiveness to almost all common screen sizes.
  • Error handling server-side, like services offline, or wrong credentials in login, using pop up, made with react-hot-toast.

💥 Problems Faced

We tried to keep a clean html structure, with the minimum div's or span's possible, and in components we tried to avoid to use JS logic to change the layout, keeping the layout changes more in the styled-components files, alternating css rules with custom props.

Pages like the main profile page were more hard than we expected, do the grid management without add unnecessary html structure and manipulate only with css was a really good challenge.

About

It's a alternative application, like the old "orkut", with auth forms, and a profile dashboard.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages