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.