Skip to content

Latest commit

Β 

History

History
131 lines (94 loc) Β· 4.86 KB

File metadata and controls

131 lines (94 loc) Β· 4.86 KB

Shopery

πŸš€ Getting Started

To start the project, use:

pnpm dev fe-admin
pnpm dev fe-web
pnpm serve be-api

To generate a new library, use:

npx nx g lib @shopery/ui --directory=libs/ui/ui-shared

To run Prettier for the entire project, use:

pnpm prettier-all

To run ESLint:

pnpm lint fe-web
pnpm lint fe-admin
pnpm lint be-api

🐳 Docker

To run Redis and MongoDB using Docker, follow the steps below.

πŸ”§ Configuration

  • Make sure you have a .env file in the project root with the following variables:

▢️ Start Services

  • Use the following command to spin up the containers:
docker-compose up -d

This will start: Redis (redis:7) β€” for caching and session management. MongoDB (mongo:7) β€” with default credentials root / example.

🧹 Stop & Clean Up

  • To stop the services and remove volumes:
docker-compose down -v

πŸ›  Technologies

Web (Frontend)

Admin Panel

Backend


πŸ“„ Project Structure

shopery/
β”œβ”€β”€ 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.