Código base de la aplicación web Snapgram Hecha en React.js, React Dropzone, React Hooks Form, React Icons, React Intersection Observer, React Query, React Router Dom, Shadcn/ui, Sweetalert2, TypeScript, Zod, Tailwind CSS que utiliza Appwrite como backend as a service.
{
"compilerOptions": {
/* Shadcn */
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
}
},
}
npm i -D @types/node
import path from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});
npx shadcn-ui@latest init
- ✔ Would you like to use TypeScript (recommended)? … no / yes
- ✔ Which style would you like to use? › Default
- ✔ Which color would you like to use as base color? › Slate
- ✔ Where is your global CSS file? … src/styles/index.css
- ✔ Would you like to use CSS variables for colors? … no / yes
- ✔ Where is your tailwind.config.js located? … tailwind.config.js
- ✔ Configure the import alias for components: … @/components
- ✔ Configure the import alias for utils: … @/lib/utils
- ✔ Are you using React Server Components? … no / yes
- ✔ Write configuration to components.json. Proceed? … yes
npx shadcn-ui@latest add button
npx shadcn-ui@latest add form
npx shadcn-ui@latest add input
npx shadcn-ui@latest add label
npx shadcn-ui@latest add toast
npx shadcn-ui@latest add textarea
npx shadcn-ui@latest add tabs
- AppWrite - For backend as a service
- React - JS library
- React Dropzone - For create a HTML5-compliant drag'n'drop zone for files.
- React Hook Forms - For forms with easy-to-use validation.
- React Icons - For Icons
- React Intersection Observer - For tell you when an element enters or leaves the viewport.
- React Query - For data
- React Router Dom - For routes
- Shadcn/ui - For build a custom component library for the project.
- Sweetalert2 - For alerts
- Tailwind CSS - For styles
- Tailwind CSS Animate - For creating animations.
- Typescript - For Javascript with syntax for types
- Vite - For development environment
- Zod - For TypeScript-first schema validation
- npm i
- npm run dev
- npm run build
- AppWrite
- React
- React Dropzone
- React Hook Form
- React Icons
- React Intersection Observer
- React Query
- React Router Dom
- Shadcn/ui
- Sweetalert2
- Tailwind-merge
- Zod
- Autoprefixer
- Post CSS
- Tailwind CSS
- Tailwind CSS Animate
- Typescript
- Vite
- Website - Axe10rellana