This is a full-stack book store application built with Go for the backend and Next.js for the frontend.
- User authentication and authorization
- Admin dashboard for managing books and orders
- Goroutine practice
- JWT token generation with custom claims
- CRUD operations for books and orders
- Middleware for request validation and logging
- Responsive UI with React and Next.js
- State management with Redux Toolkit
- Go: Programming language for the backend
- Gin: Web framework for building the API
- GORM: ORM library for database interactions
- JWT: JSON Web Tokens for authentication
- Slog: Structured logging
- Next.js: React framework for server-side rendering and static site generation
- React: JavaScript library for building user interfaces
- Redux Toolkit: State management
- TypeScript: Typed superset of JavaScript
- ESLint: Linting tool for code quality
-
Navigate to the backend directory:
cd backend
-
Install dependencies:
go mod tidy
-
Run the server:
go run main.go
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open http://localhost:3000 with your browser to see the result.
To learn more about the technologies used in this project, take a look at the following resources:
- Go Documentation
- Gin Documentation
- Next.js Documentation
- React Documentation
- Redux Toolkit Documentation
This project is licensed under the MIT License.