Small adjustment to the project

This commit is contained in:
2025-02-10 09:42:59 +01:00
parent 6c2e02b911
commit 61095f4ada
6 changed files with 6 additions and 7 deletions

View File

@@ -9,5 +9,6 @@
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="inter" level="application" /> <orderEntry type="library" name="inter" level="application" />
<orderEntry type="library" name="inter" level="application" />
</component> </component>
</module> </module>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="file://$PROJECT_DIR$" libraries="{inter}" />
</component>
</project>

View File

@@ -7,6 +7,7 @@
<resourceRoots> <resourceRoots>
<path value="file://$PROJECT_DIR$/assets" /> <path value="file://$PROJECT_DIR$/assets" />
<path value="file://$PROJECT_DIR$/autoassets" /> <path value="file://$PROJECT_DIR$/autoassets" />
<path value="file://$PROJECT_DIR$/static" />
</resourceRoots> </resourceRoots>
</entryData> </entryData>
</entry> </entry>

View File

@@ -1,4 +1,4 @@
# Intro # RSS Notifier
### Some things to do before the good things can happen ### Some things to do before the good things can happen
Install Diesel and Watchexec: Install Diesel and Watchexec:
@@ -22,6 +22,8 @@ or (with or without `--watch`)
pnpm compile pnpm compile
``` ```
You need to run the Tailwind compilation before Cargo build.
### How to Dev like a pro ### How to Dev like a pro
My suggestion is to open one terminal and run `pnpm devrun` to continously rebuild My suggestion is to open one terminal and run `pnpm devrun` to continously rebuild
the Tailwind css and restart/rebuild the Rust server if a template file change. the Tailwind css and restart/rebuild the Rust server if a template file change.

View File

@@ -88,6 +88,7 @@ async fn main() -> Result<()> {
.layer(tracelayer).layer(cors); .layer(tracelayer).layer(cors);
// Launch Web Server // Launch Web Server
let app = Router::new() let app = Router::new()
// TODO: Serve a mano di favicon
.nest_service("/assets", ServeDir::new("assets")) .nest_service("/assets", ServeDir::new("assets"))
.nest_service("/autoassets", ServeDir::new("autoassets")) .nest_service("/autoassets", ServeDir::new("autoassets"))
.route("/", get(index)) .route("/", get(index))

BIN
static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB