A repository made to hold the frontend codes for project of Ideation and protoryping program
# Rwanda Drive - Full Stack Application
This is a full-stack application for Rwanda's digital driving credentials platform, featuring a Go backend and Next.js frontend.
## Project Structure
```
.
├── backend/ # Go backend service
│ ├── cmd/api/main.go # Application entry point
│ ├── internal/ # Private application logic
│ │ ├── auth/ # Authentication service
│ │ ├── chain/ # Blockchain operations
│ │ ├── config/ # Configuration and logging
│ │ ├── qrcredentials/ # QR code handling
│ │ ├── server/ # HTTP server setup
│ │ └── vehicle/ # Vehicle management (new)
│ ├── pkg/ # Public libraries
│ │ └── database/ # Database abstraction
│ ├── migrations/ # Database migrations
│ ├── contracts/ # Smart contracts (Solidity)
│ └── go.mod # Go module definition
├── src/ # Next.js frontend
│ ├── app/ # App router pages
│ ├── components/ # React components
│ └── lib/ # Utilities and types
├── public/ # Static assets
└── ...
```
## Getting Started
### Prerequisites
- Go 1.22 or later
- Node.js 18+ and npm/yarn/pnpm/bun
- PostgreSQL 12 or later
- golang-migrate (for migrations)
### Installation
1. Clone the repository
2. Copy `.env.example` to `.env` and adjust values as needed (see backend/.env.example if exists)
3. Install Go dependencies:
```bash
cd backend
go mod download
```
4. Install frontend dependencies:
```bash
cd ../
npm install
# or
yarn install
# or
pnpm install
# or
bun install
```
5. Set up the database:
```bash
# Create the database
createdb cipherpass
# Run migrations
migrate -path ./backend/migrations -database "postgres://postgres:postgres@localhost:5432/cipherpass?sslmode=disable" up
```
6. Start the development servers:
`` …