This commit is contained in:
fitel17112 2025-03-04 19:49:54 +05:30
commit 8dcabfbf11
5 changed files with 70 additions and 0 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.v]
indent_style = tab

8
.gitattributes vendored Normal file
View File

@ -0,0 +1,8 @@
* text=auto eol=lf
*.bat eol=crlf
*.v linguist-language=V
*.vv linguist-language=V
*.vsh linguist-language=V
v.mod linguist-language=V
.vdocignore linguist-language=ignore

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
# Binaries for programs and plugins
main
air_bookings
*.exe
*.exe~
*.so
*.dylib
*.dll
# Ignore binary output folders
bin/
# Ignore common editor/system specific metadata
.DS_Store
.idea/
.vscode/
*.iml
# ENV
.env
# vweb and database
*.db
*.js

23
src/main.v Normal file
View File

@ -0,0 +1,23 @@
module main
import veb
pub struct Context {
veb.Context
}
pub struct App {
veb.StaticHandler
}
pub fn (app &App) index(mut ctx Context) veb.Result {
return ctx.text('Namaste India!!!')
}
fn main() {
mut app := &App{}
app.handle_static('static', false)!
veb.run[App, Context](mut app, 8080)
}

7
v.mod Normal file
View File

@ -0,0 +1,7 @@
Module {
name: 'air_bookings'
description: 'An Air Plane Booking Web Application'
version: '0.0.0'
license: 'MIT'
dependencies: []
}