https://github.com/manjurulhoque/book-store
A full-stack book store application built with Go for the backend and Next.js for the frontend.
https://github.com/manjurulhoque/book-store
gin gin-framework gin-gonic golang next-auth nextjs
Last synced: 6 months ago
JSON representation
A full-stack book store application built with Go for the backend and Next.js for the frontend.
- Host: GitHub
- URL: https://github.com/manjurulhoque/book-store
- Owner: manjurulhoque
- Created: 2024-10-24T13:32:25.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T04:35:18.000Z (12 months ago)
- Last Synced: 2025-04-09T16:11:17.607Z (6 months ago)
- Topics: gin, gin-framework, gin-gonic, golang, next-auth, nextjs
- Language: Go
- Homepage:
- Size: 6.97 MB
- Stars: 74
- Watchers: 1
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book Store
This is a full-stack book store application built with Go for the backend and Next.js for the frontend.
## Features
- 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## Tech Stack
### Backend
- **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### Frontend
- **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## Screenshots
### Home Page
### Books Page
### Cart Page
### Admin dashboard
## Getting Started
### Backend
1. Navigate to the backend directory:
```bash
cd backend
```2. Install dependencies:
```bash
go mod tidy
```3. Run the server:
```bash
go run main.go
```### Frontend
1. Navigate to the frontend directory:
```bash
cd frontend
```2. Install dependencies:
```bash
npm install
```3. Run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Learn More
To learn more about the technologies used in this project, take a look at the following resources:
- [Go Documentation](https://golang.org/doc/)
- [Gin Documentation](https://gin-gonic.com/docs/)
- [Next.js Documentation](https://nextjs.org/docs)
- [React Documentation](https://reactjs.org/docs/getting-started.html)
- [Redux Toolkit Documentation](https://redux-toolkit.js.org/introduction/getting-started)## License
This project is licensed under the MIT License.