A modern e-commerce platform for buying and selling books, built with Laravel and Nuxt.js.
- User authentication and authorization
- Book listing and search functionality
- Shopping cart and checkout process
- Seller account management
- Admin dashboard
- Stripe payment integration
- Meilisearch for fast and relevant search results
- Docker and Docker Compose
- Node.js (v16 or higher)
- PHP 8.2
- Composer
- pnpm or npm
- Clone the repository:
git clone [repository-url]
cd Timeless-Tomes- Copy the environment file:
cp .env.example .env- Configure your environment variables in
.env:
MYSQL_ROOT_PASSWORD=your_secure_password
MYSQL_USER=your_mysql_user
MYSQL_PASSWORD=your_mysql_password
MYSQL_DATABASE=eindopdracht
MYSQL_HOST=mysql
MYSQL_PORT=3306
PHP_DB_HOST=mysqlJWT_SECRET=your_base64_encoded_secret_longer_than_256_bits
JWT_ISSUER=localhost
JWT_AUDIENCE=localhostBASE_URL=http://localhost:8080STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_PUBLIC_KEY=your_stripe_public_key
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret- Log in to your Stripe Dashboard
- Go to Developers → Webhooks
- Click "Add endpoint"
- Set the endpoint URL to:
https://your-domain.com/stripe/webhook - Select the following events to listen for:
payment_intent.succeededpayment_intent.payment_failedcheckout.session.completed
- Copy the "Signing secret" and add it to your
.envasSTRIPE_WEBHOOK_SECRET
For more information about Stripe webhooks, visit the Stripe Webhook Documentation.
MEILI_HOST_URL=your_meilisearch_host_url
MEILI_MASTER_KEY=your_meilisearch_master_key
MEILI_SEARCH_KEY=your_meilisearch_search_key- Start the Docker containers:
docker-compose up -d- Install Node.js dependencies:
cd vue
pnpm install or npm install- Start the development server:
# In the vue directory
pnpm dev or npm run devThe application should now be running at:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8080
admin: admin@gmail.com, 123456789
seller: seller@gmail.com, 123456789
This project is licensed under the MIT License - see the LICENSE file for details.