https://github.com/matt-d-webb/rusty
https://github.com/matt-d-webb/rusty
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matt-d-webb/rusty
- Owner: matt-d-webb
- License: mit
- Created: 2023-09-13T11:17:22.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-13T11:17:24.000Z (almost 2 years ago)
- Last Synced: 2024-05-28T22:39:32.072Z (about 1 year ago)
- Language: HTML
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rocket-template
This repository contains a templete to quickly create a web project based on the [Rocket framework](https://rocket.rs/) + [Askama](https://github.com/djc/askama) with [TailwindCSS](https://tailwindcss.com/) for writing the frontend.
More content will be added in wikis in the future.
## Requirements
- [Rustup](https://rustup.rs/) installed (1.23.0+).
- [NodeJS](https://nodejs.org/en/download/) (11+)## Usage
1. Clone the repo.
1. Under the main folder execute `cargo run`.
1. Navigate to `localhost:8000`.## Structure
The project is divided into 2 main folders: **public** and **src**.
- **public**: Here is all the frontend. Since Askama is being used, is recommended to read the [Askama book](https://djc.github.io/askama/template_syntax.html). TailwindCSS can be used.
- **src**: Backend code and backend <-> frontend linkage.