From 1bfccba59f5281a01edcbb66b714503d70d02d7e Mon Sep 17 00:00:00 2001 From: rasmus Date: Fri, 24 Jan 2025 10:58:38 +0100 Subject: [PATCH] Initial commit --- app/main.f90 | 6 ++++++ fpm.toml | 18 ++++++++++++++++++ src/WebServer.f90 | 10 ++++++++++ test/check.f90 | 5 +++++ 4 files changed, 39 insertions(+) create mode 100644 app/main.f90 create mode 100644 fpm.toml create mode 100644 src/WebServer.f90 create mode 100644 test/check.f90 diff --git a/app/main.f90 b/app/main.f90 new file mode 100644 index 0000000..983603a --- /dev/null +++ b/app/main.f90 @@ -0,0 +1,6 @@ +program main + use WebServer, only: say_hello + implicit none + + call say_hello() +end program main diff --git a/fpm.toml b/fpm.toml new file mode 100644 index 0000000..1cd25ac --- /dev/null +++ b/fpm.toml @@ -0,0 +1,18 @@ +name = "WebServer" +version = "0.1.0" +license = "license" +author = "Rasmus Rasmussen" +maintainer = "jane.doe@example.com" +copyright = "Copyright 2025, Rasmus Rasmussen" +[build] +auto-executables = true +auto-tests = true +auto-examples = true +module-naming = false +[install] +library = false +[fortran] +implicit-typing = false +implicit-external = false +source-form = "free" + diff --git a/src/WebServer.f90 b/src/WebServer.f90 new file mode 100644 index 0000000..f7deead --- /dev/null +++ b/src/WebServer.f90 @@ -0,0 +1,10 @@ +module WebServer + implicit none + private + + public :: say_hello +contains + subroutine say_hello + print *, "Hello, WebServer!" + end subroutine say_hello +end module WebServer diff --git a/test/check.f90 b/test/check.f90 new file mode 100644 index 0000000..d7e3cba --- /dev/null +++ b/test/check.f90 @@ -0,0 +1,5 @@ +program check +implicit none + +print *, "Put some tests in here!" +end program check