### Running Next.js Development Server (Bash) Source: https://github.com/6531503042/sport-complex/blob/main/frontend/README.md Commands to start the Next.js development server using different package managers (npm, yarn, pnpm, or bun). The server will typically be accessible at http://localhost:3000. ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` -------------------------------- ### Start Go Backend Application - Bash Source: https://github.com/6531503042/sport-complex/blob/main/backend/README.md Runs the main Go application entry point, specifying different environment files for various modules (auth, booking, user, facility, payment). Each command starts the application with a specific configuration. ```bash go run main.go ./env/dev/.env.auth ``` ```bash go run main.go ./env/dev/.env.booking ``` ```bash go run main.go ./env/dev/.env.user ``` ```bash go run main.go ./env/dev/.env.facility ``` ```bash go run main.go ./env/dev/.env.payment ``` -------------------------------- ### Install Go Backend Dependencies - Bash Source: https://github.com/6531503042/sport-complex/blob/main/backend/README.md Installs required Go packages for the backend application using `go get`. These packages include web framework (echo), middleware, validation, environment variable loading, database driver (MongoDB), JWT handling, and testing utilities. ```bash go get github.com/labstack/echo/v4 go get github.com/labstack/echo/v4/middleware go get github.com/go-playground/validator/v10 go get github.com/joho/godotenv go get go.mongodb.org/mongo-driver/mongo go get github.com/golang-jwt/jwt/v5 go get github.com/stretchr/testify ``` -------------------------------- ### Starting MongoDB Service - Shell Source: https://github.com/6531503042/sport-complex/blob/main/frontend/src/app/(pages)/README.md Starts the MongoDB database service using the systemctl command. This command typically requires root privileges. ```Shell sudo systemctl start mongod ``` -------------------------------- ### Project Development Timeline - Mermaid Source: https://github.com/6531503042/sport-complex/blob/main/README.md Defines a Gantt chart using Mermaid syntax to visualize the project development timeline. It outlines various development phases and tasks with their start dates and durations, categorized into Project Setup, Frontend Development, Backend Development, and Integration & Testing. ```mermaid gantt title Project Development Timeline dateFormat YYYY-MM-DD section Project Setup Initial Planning :2023-09-01, 7d Architecture Design :2023-09-07, 14d Docker & K8s Setup :2023-09-14, 10d section Frontend Development UI/UX Design :2023-09-10, 14d Login/Register :2023-09-15, 21d Homepage & Navigation :2023-09-20, 14d Booking System :2023-09-25, 30d Admin Dashboard :2023-10-05, 25d Payment Interface :2023-10-15, 14d section Backend Development Auth Service :2023-09-15, 21d User Service :2023-09-20, 21d Facility Service :2023-09-25, 21d Booking Service :2023-10-01, 25d Admin Service :2023-10-10, 20d Payment Service :2023-10-15, 21d section Integration & Testing API Integration :2023-10-20, 14d gRPC Implementation :2023-10-25, 10d Kafka Setup :2023-10-30, 7d System Testing :2023-11-01, 21d Bug Fixes :2023-11-15, 14d ``` -------------------------------- ### Running Auth Service - Go Source: https://github.com/6531503042/sport-complex/blob/main/frontend/src/app/(pages)/README.md Executes the main Go application entry point (`main.go`) for the authentication service. It loads configuration settings from the specified development environment file for authentication. ```Go go run main.go ./env/dev/.env.auth ``` -------------------------------- ### Running Booking Service - Go Source: https://github.com/6531503042/sport-complex/blob/main/frontend/src/app/(pages)/README.md Executes the main Go application entry point (`main.go`) for the booking service. It loads configuration settings from the specified development environment file for booking. ```Go go run main.go ./env/dev/.env.booking ``` -------------------------------- ### Running User Service - Go Source: https://github.com/6531503042/sport-complex/blob/main/frontend/src/app/(pages)/README.md Executes the main Go application entry point (`main.go`) for the user service. It loads configuration settings from the specified development environment file for users. ```Go go run main.go ./env/dev/.env.user ``` -------------------------------- ### Running Payment Service - Go Source: https://github.com/6531503042/sport-complex/blob/main/frontend/src/app/(pages)/README.md Executes the main Go application entry point (`main.go`) for the payment service. It loads configuration settings from the specified development environment file for payments. ```Go go run main.go ./env/dev/.env.payment ``` -------------------------------- ### Running Facility Service - Go Source: https://github.com/6531503042/sport-complex/blob/main/frontend/src/app/(pages)/README.md Executes the main Go application entry point (`main.go`) for the facility service. It loads configuration settings from the specified development environment file for facilities. ```Go go run main.go ./env/dev/.env.facility ``` -------------------------------- ### Generate Protocol Buffer Files - Bash Source: https://github.com/6531503042/sport-complex/blob/main/backend/README.md Uses the `protoc` compiler to generate Go code and gRPC service definitions from `.proto` files for different backend modules (user, auth, facility, payment). The commands specify output directories and options for Go and gRPC. ```bash protoc --go_out=. --go_opt=paths=source_relative \ --go-grpc_out=. --go-grpc_opt=paths=source_relative \ modules/player/proto/userPb.proto ``` ```bash protoc --go_out=. --go_opt=paths=source_relative \ --go-grpc_out=. --go-grpc_opt=paths=source_relative \ modules/auth/proto/authPb.proto ``` ```bash protoc --go_out=. --go_opt=paths=source_relative \ --go-grpc_out=. --go-grpc_opt=paths=source_relative \ modules/facility/proto/facilityPb.proto ``` ```bash protoc --go_out=. --go_opt=paths=source_relative \ --go-grpc_out=. --go-grpc_opt=paths=source_relative \ modules/payment/proto/paymentPb.proto ``` -------------------------------- ### Run Database Migrations - Bash Source: https://github.com/6531503042/sport-complex/blob/main/backend/README.md Executes the database migration script for different modules (user, auth, booking, facility, payment) sequentially using `go run`. This command applies necessary database schema changes for development environments. ```bash go run ./pkg/database/script/migration.go ./env/dev/.env.user && \ go run ./pkg/database/script/migration.go ./env/dev/.env.auth && \ go run ./pkg/database/script/migration.go ./env/dev/.env.booking && \ go run ./pkg/database/script/migration.go ./env/dev/.env.facility && \ go run ./pkg/database/script/migration.go ./env/dev/.env.payment && \\ ``` -------------------------------- ### Build Docker Image for Auth Service - Bash Source: https://github.com/6531503042/sport-complex/blob/main/backend/README.md Builds a Docker image for the authentication service using the specified Dockerfile (`build/auth/Dockerfile`). The image is tagged with the repository name `6531503042/Sport-Complexp` and the `latest` tag. ```bash docker build -t 6531503042/Sport-Complexp:latest -f build/auth/Dockerfile . ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.