Skip to content

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.

License

Notifications You must be signed in to change notification settings

Axe10rellana/snapgram

Repository files navigation

Snapgram

Descripción

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.


Configuración de shadcn

Modificación del archivo tsconfig.json

{
  "compilerOptions": {
    /* Shadcn */
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  },
}

Actualizar el archivo vite.config.ts

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"),
    },
  },
});

Ejecutar el comando shadcn-ui init

npx shadcn-ui@latest init

Configurar los components.json

- ✔ 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

Agregar componentes al proyecto

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

Vista En Versión Desktop

Vista_En_Versión_Desktop

Vista En Versión Mobile

Vista_En_Versión_Mobile


Enlace A La Aplicación


Hecho con


Comandos

  • npm i
  • npm run dev
  • npm run build

Dependencias

  • AppWrite
  • React
  • React Dropzone
  • React Hook Form
  • React Icons
  • React Intersection Observer
  • React Query
  • React Router Dom
  • Shadcn/ui
  • Sweetalert2
  • Tailwind-merge
  • Zod

Dependencias De Desarrollo

  • Autoprefixer
  • Post CSS
  • Tailwind CSS
  • Tailwind CSS Animate
  • Typescript
  • Vite

Autor

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published