This is an example Go project that demonstrates uploading and processing CSV files containing account information. It includes a web server to handle file uploads and a backend service for processing the uploaded files.
- Upload CSV files containing account information.
- Process and create accounts from the uploaded files.
- Monitor the status of file processing.
- Retrieve information about processed files and their accounts.
- Go 1.11 or higher
- Git
- Clone the repository:
git clone https://github.com/kirian-dev/go-import-file-csv.git
cd go-upload-file-csv
- Run server
go run ./cmd/main.go
- GET /api/files: Get a list of processed files.
- GET /api/files/{fileId}: Get details of a specific processed file.
- POST /api/files: Upload a CSV file for processing.
- cmd/: Main application entry point.
- internal/: Internal application code.
- handlers/: HTTP request handlers.
- models/: Data models.
- services/: Business logic and file processing services.
- utils/: Helpers for working with a file.
- scripts/: Scripts for generating test CSV files.
This project is licensed under the MIT License. See the LICENSE file for details.