This project is a simple report generator for the army developed in Go. It lets you create customized reports by filling in a form and saving them in JSON format. It has been designed mainly for the French army.
- Make sure you have Go installed on your machine (version 1.16 or higher).
- Clone this GitHub repository:
git clone <repository URL>
- Navigate to the project directory:
cd ArmyMissionTracker
- Install project dependencies:
go mod download
- Run the application:
go run main.go
- Open your browser and access the following URL:
http://localhost:8080
- Go (version 1.16 or higher) - Main programming language.
- HTML/CSS - User interface for the report form.
- HTML Template - Used to generate dynamic HTML pages.
- JSON - Data format used for saving reports.
ArmyMissionTracker/
βββ handlers
β βββ report_handler.go #
βββ reports/ # Directory for generated reports (not tracked by Git)
β βββ generated_reports/ # Directory for JSON reports generated by the application
βββ main.go # Entry point of the application
βββ static/ # Directory for static files (CSS, images)
β βββ style.css # CSS style sheet
β βββ stylereports.css # CSS style sheet
β βββ script.css # JS script
βββ templates/ # Directory for HTML templates
β βββ report_form.html # Report form template
β βββ reports.html # Generated reports list template
βββ main.go # Entry point of the application
main.go
is the main file containing the application logic.- The
static/
directory contains static files such as CSS style sheets. - The
templates/
directory contains HTML templates used to generate web pages. report_form.html
is the HTML template for the report form.reports.html
is the HTML template for the generated reports list.- The
reports/generated_reports/
directory is the location where JSON reports generated by the application are stored. This directory is created automatically when you generate your first report.
Make sure to add the reports/generated_reports/
directory to your .gitignore
file to avoid tracking the generated reports in your Git repository.