Clone the repository: git clone https://github.com/robertwayne/template-axum-solidjs-spa
Change .env.TEMPLATE
to .env
and set your Postgres credentials (if not using defaults).
Install your dependencies with bun i
.
Build the client with bun run build
from inside the /client
directory. Alternatively, you can use bun dev
to run the client with the vite dev server.
Run the server with cargo run
from inside the /server
directory.
http://127.0.0.1:3000
.http://127.0.0.1:8000
.mimalloc
instead of the default allocator.Remember, this is a template. Make sure you review the code and adjust it to your projects needs.
Command | Action |
---|---|
./update.sh | Updates the dependencies of both the client and server projects. |