This is a Quote App have features:-
- User will be able to login and login info shows on top right.
- User will be able to get a random quote as many times as they want.
- User will be able to favourite a random quote.
- User will be able to unfavourite a random quote.
- User will be able to edit the text and author of a quote.
- Node.js (>= 14.x)
- npm
-
Clone the repository:
git clone https://github.com/your-username/quote-app.git
-
Install dependencies:
npm install
To start the development server with hot module replacement:
npm run devTo build the project for production:
npm run buildTo preview the production build:
npm run previewCreate a .env file in the root of the project and add the following environment variables:
VITE_API_NINJAS_KEY=your_api_key_hereYou can use the provided env.example as a template.
quote-app/
├── public/
│ ├── vite.svg
│ └── profile.svg
├── src/
│ ├── assets/
│ │ ├── profile.png
│ │ └── react.svg
│ ├── components/
│ │ ├── FavouritesList/
│ │ │ ├── EmptyFavourites.tsx
│ │ │ └── FavouritesList.tsx
│ │ ├── Loader/
│ │ │ ├── Loader.css
│ │ │ └── Loader.tsx
│ │ ├── LoginForm/
│ │ │ └── LoginForm.tsx
│ │ ├── NavBar/
│ │ │ └── NavBar.tsx
│ │ ├── QuoteCard/
│ │ │ └── QuoteCard.tsx
│ │ └── QuoteSection/
│ │ └── QuoteSection.tsx
│ ├── lib/
│ │ ├── models/
│ │ │ └── card.model.ts
│ │ ├── stores/
│ │ │ └── useStore.ts
│ │ ├── user-messages/
│ │ │ ├── error-messages.ts
│ │ │ └── success-messages.ts
│ │ └── utils.ts
│ ├── ui/
│ │ ├── avatar.tsx
│ │ ├── badge.tsx
│ │ ├── button.tsx
│ │ ├── card.tsx
│ │ ├── input.tsx
│ │ ├── label.tsx
│ │ ├── toast.tsx
│ │ ├── toaster.tsx
│ │ └── use-toast.ts
│ ├── App.css
│ ├── App.tsx
│ ├── index.css
│ ├── main.tsx
│ └── vite-env.d.ts
├── .gitignore
├── .gitattributes
├── components.json
├── index.html
├── package.json
├── postcss.config.ts
├── tailwind.config.ts
├── tsconfig.app.json
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts