This repo includes:
/api/v1/fruits
)<App />
)server/db/fruits.ts
)client/apis/fruits.ts
)client/components/App.test.tsx
)See the instructions here to use Github's feature to create a new repo from a template.
git clone https://github.com/tohora-2023/boilerplate-fullstack-tailwind [your-project-name]
cd [your-project-name]
npm install # to install dependencies
npm run dev # to start the dev server
npm run knex migrate:latest # to update the database
npm run knex seed:run # to run the seeds
npx tailwindcss -i ./client/styles/index.css -o ./server/public/styles.css # to build tailwind
You can find the server running on http://localhost:3000.