git clone https://github.com/itsmaheshkariya/preact_tailwindcss_signals_crud
cd preact_tailwindcss_signals_crud
yarn
yarn dev
π§βπ Seasoned astronaut? Delete this file. Have fun!
Inside of your Preact + Tailwindcss + Signals project, you'll see the following folders and files:
/
βββ public/
βββ src/
β βββ assets/
β βββ UserForm.jsx
β βββ components/
β βββ UserForm.jsx
β βββ UserTable.jsx
β βββ signals/
β βββ user.js
β βββ App.jsx
βββ package.json
βββ index.html
βββ tailwind.config.cjs
βββ vite.config.js
βββ postcss.config.cjs
βββ yarn.lock
There's nothing special about src/components/
, but that's where we like to put any Preact components.
Any static assets, like images, can be placed in the public/
directory.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:5173 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
Feel free to check our documentation or jump into our Discord server.