This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
This project consists of two main components:
- Main Application: A Next.js web application that serves the user interface and API routes
- Cron Service: A standalone Express.js service that handles scheduled tasks
The cron service is located in the cron-service directory and handles these scheduled tasks:
- Token Refresh: Automatically refreshes AliExpress tokens before they expire (hourly)
- Product Updates: Fetches the latest product details from AliExpress and updates price and stock in Lightfunnels (hourly)
To run the cron service:
cd cron-service
npm install
npm run build
npm startSee the cron service README for more details.
You can run both the main application and the cron service using Docker Compose:
docker-compose upTo learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.