Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Rust and Javascript Notes Web App.
Backend: cd backend, cargo run
Frontend: cd frontend, python3 -m http.server 3000
Go to http://localhost:3000/

To use react frontend

  1. cd frontend-react.
  2. If it is your first time: npm install
  3. For development: npm run dev, then go to http://localhost:5173/
    For build: npm run build, npm run preview, then go to http://localhost:4173/

What is this?

The backend is a Rust HTTP server (Using only serde (for JSON serialization and deserialization), bcrypt (for password hashing), rand (for random numbers) and std) that serves a notes API with create/update/delete and persists notes to backend/data/note.json. The frontend is a dependency‑free static HTML/CSS/JS page that calls the API, served with a simple static file server on port 3000.

Notes

To run the backend, you need cargo installed. You can learn about that here: https://doc.rust-lang.org/cargo/getting-started/installation.html.

To run the frontend, you need python installed.

frontend-react was created using npm create vite@latest frontend-react -- --template react

About

This is a minimal Rust + JavaScript notes web app. The backend is a Rust HTTP server (std-only) that serves a notes API with create/update/delete and persists notes. The frontend is a dependency‑free static HTML/CSS/JS page that calls the API, served with a simple static file server on port 3000.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages