This is a web application built with Next.js, Chakra UI, and Apollo Client. It allows users to explore characters from the Rick and Morty universe, view detailed character information, and manage user settings.
- Authentication: Users can log in and log out.
- Character Display: Browse and view detailed information about characters.
- Pagination: Navigate through pages of characters.
- User Settings: Edit and save user details like username and job title.
- Error Handling: Graceful error handling with retry options.
- Framework: Next.js
- UI Library: Chakra UI
- GraphQL Client: Apollo Client
- State Management: React Context API
- Validation: Vest
- Icons: React Icons
src/
├── app/ # Next.js app directory (pages, routes, etc.)
├── components/ # Reusable UI components (buttons, forms, etc.)
├── consts/ # Constants used across the app (e.g., API URLs, default values)
├── hooks/ # Custom React hooks for managing state and effects
├── lib/ # Library configurations (e.g., Apollo Client, Firebase)
├── utils/ # Utility functions (helpers, formatters, etc.)
- Clone the repository:
git clone https://github.com/yourusername/leonardo.git
- Install dependencies:
npm install
# or
yarn install
- Run the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser to see the result.
To build the project for production:
npm run build
# or
yarn build
To start the production server:
npm run start
# or
yarn start
npm run dev
- Start the development server with Turbopacknpm run build
- Build the project for productionnpm run start
- Start the production servernpm run lint
- Run ESLint for code linting
This project is licensed under the MIT License - see the LICENSE file for details.