This is a monorepo containing 2 e-commerce apps
- Angular v15 Frontend
- NestJs v9 Backend
- TypeORM
- MySQL server
- Nx v15+
- SwaggerUi v6+
- Fork the project
- Clone the project
- Run
npm install
to install node packages and dependencies - Create a .env file at the root of the project with the following settings
JWT_SECRET=
JWT_EXPIRES_IN=
AWS_S3_BUCKET=
DATABASE_TYPE=
DATABASE_HOST=
DATABASE_PORT=
DATABASE_USERNAME=
DATABASE_PASSWORD=
DATABASE_NAME=
npm run start:fe
for a dev server. Navigate to http://localhost:4200/. The Angular app will automatically reload if you change any of the source files.
npm run start:be
for a dev server. Navigate to http://localhost:3000/.
The NestJs app will be launced
- Angular Tests
npm run test:fe
- NestJs Tests
npm run test:be
Use SwaggerUi to visualize and interact with the API’s resources
Make sure the back-end service has been started if not start with nx server back-end
Navigate to http://localhost:3000/docs
using the browser
- Angular
npm run build-prod:fe
- NestJs
npm run build-prod:be
- Build all apps
npm run build-prod:all
nx graph
to see a diagram of the dependencies of the projects.
npx nx connect-to-nx-cloud
to enable remote caching and make CI faster.