To start the project, use:
pnpm dev fe-admin
pnpm dev fe-web
pnpm serve be-apiTo generate a new library, use:
npx nx g lib @shopery/ui --directory=libs/ui/ui-sharedTo run Prettier for the entire project, use:
pnpm prettier-allTo run ESLint:
pnpm lint fe-web
pnpm lint fe-admin
pnpm lint be-apiTo run Redis and MongoDB using Docker, follow the steps below.
- Make sure you have a .env file in the project root with the following variables:
- Use the following command to spin up the containers:
docker-compose up -dThis will start: Redis (redis:7) — for caching and session management. MongoDB (mongo:7) — with default credentials root / example.
- To stop the services and remove volumes:
docker-compose down -vshopery/
├── apps/
│ ├── fe-web/ # Next.js Web Frontend
│ ├── fe-admin/ # React Admin Panel
│ └── be-api/ # Fastify Backend API
│
├── libs/
│ ├── ui-shared/ # Shared UI components
│ └── shared/ #Shared function and business logic
│
├── package.json
├── nx.json
├── docker-compose.yaml
└── README.md
🎯 Contributors & Maintainers
- Feel free to contribute to the project! Fork, create a branch, and submit a PR.
💡 Questions or Issues? If you encounter any issues, feel free to open an issue on the repository.
