https://github.com/TarunCore/file-drive.git
- Golang – Language
- PostgreSQL - Database
- Gin – Framework
- sqlc – ORM
- migrate – Migrations
- S3
- SQS
- Next.js – Framework
- Hero UI – Components
-
Navigate to the backend folder:
cd server -
Install dependencies (if any):
go mod tidy
-
Run the backend server:
go run main.go
Add
.envfile.
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
S3_BUCKET_NAME=
DATABASE_URL="user=root password=password host=localhost port=5433 dbname=filedrive sslmode=disable"
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=-
Navigate to the frontend folder:
cd file-drive-app -
Install dependencies:
npm install
-
Start the development server:
npm run dev
Env file
NEXT_PUBLIC_API_BASE_URL=http://localhost:8080/api/v1
NEXT_PUBLIC_FRONTEND_URL=http://localhost:3000
NEXT_PUBLIC_GOOGLE_CLIENT_ID=The frontend should now be running at: http://localhost:3000
- Containerize apps
- Check failed uploads and remove from DB
- (or) write db record only after uploads