This is an open-source e-commerce platform for a vieshare, built with Next.js and PocketBase.
Warning This project is still in development and is not ready for production use.
- Framework: Next.js
- Styling: Tailwind CSS
- Database & Auth: PocketBase
- UI Components: shadcn/ui
- Content Management: Contentlayer
- File Uploads: uploadthing
- User authentication with PocketBase
- Storefront with products, categories, and subcategories
- "More products from" section on product detail page
- Product image carousel
- Shopping cart
- ... and more to come!
-
Clone the repository
git clone https://github.com/khieu-dv/vieshare
-
Install dependencies
pnpm install
-
Set up PocketBase
cd pocketbase-docker
docker-compose up -d🔗 PocketBase Admin: http://localhost:8090/_/
- Set up your admin account and configure collections
- The database will be automatically seeded with demo content
-
Set up environment variables
Copy the
.env.examplefile to a new file named.envand update the variables with your PocketBase API URL.cp .env.example .env
Your
.envfile should look like this:NEXT_PUBLIC_POCKETBASE_URL=http://127.0.0.1:8090 -
Run the database migrations
This project uses a migration tool to manage the PocketBase schema. To apply the migrations, run the following command:
node import-fake-data.js
This will create the necessary collections and fields in your PocketBase project. You can view the schema in the
pocketbase-schema.mdfile. -
Start the development server
pnpm run dev
The application will be available at
http://localhost:3000.
Contributions are welcome! Please open an issue if you have any questions or suggestions. Your contributions will be acknowledged. See the contributing guide for more information.
Licensed under the MIT License. Check the LICENSE file for details.



