This is a website that contains all the necessary features of an account system, including:
- Signing up
- Logging in
- Storing users in database
- Hashing passwords
- Storing a Json Web Token in your cookies in order to stay logged in
- Frontend: TypeScript with React
- Backend: Rust with Actix Web
- Database: PostgreSQL
- Install NodeJS
- (Optional) Create a
.envfile to specify the port, eg.PORT=3001 - Run
npm startin the/clientdirectory
- Install Rust
- Create a PostgreSQL database with a table called users, with the columns
id(integer + auto-incrementing),username(text), andpassword(text) - Create a
.envfile to specify the URL to the PostgreSQL database, and a port, with the variable namesDATABASE_URLandPORT. - In the frontend, replace all
fetchURLs withhttp://localhost:(PORT)or whatever URL the backend is running on