✨ seamlessly simple, effortless temporary file sharing.
- Docker installed on your system
- Docker Compose installed
- Go installed (version 1.23.5+ recommended)
- PostgreSQL installed and running
🐳 Using Docker
- Clone the repository:
git clone https://github.com/nxrmqlly/arcfile.git
cd arcfile
- Start the services:
docker-compose up -d --build
This will build and start both the database and the API service.
- Stop the services:
docker-compose down
💻 Running Manually
- Start PostgreSQL
- Ensure PostgreSQL is running locally with the following credentials:
- User:
youruser
- Password:
yourpassword
- Database:
yourdb
- Port:
5432
- User:
If using psql
, you can create the database manually:
psql -U youruser -c "CREATE DATABASE yourdb;"
- Clone the repository:
git clone https://github.com/nxrmqlly/arcfile.git
cd arcfile
- Set up environment variables:
Rename
.env.example
to.env
and update the values:
# Your PostgreSQL database connection string
DATABASE_URL=postgres://youruser:yourpassword@localhost:5432/yourdb
# Gin mode: log levels, basically
GIN_MODE=release
# Set to true to listen on all interfaces (0.0.0.0), or false for localhost only
HOST=true
# Maximum upload size in MiB (Mebibytes) (default is 32 MiB)
MAX_UPLOAD_SIZE=32
- Build and run the application:
go mod download
go build -o main ./cmd/api/main.go
./main
After running the service, the API should be accessible at:
- Base URL:
http://localhost:8080
- API Routes
/api
-
Thanks to Aryan Madan (web) for help with frontend
-
Thanks to Big Phil for help with the database