A productivity and organization tool platform.
- Frontend: React + Emotion + ViteJS (swc)
- Backend: Rust + Axum + Mongodb driver
- Database: MongoDB sharded cluster
➡️ Read the main TAD here
➡️ Read the MongoDB TAD here
- Fill env file
$ cp .env.dist .env
$ vim .env
Complete:
-MONGO_USER
& MONGO_PASSWORD
, it will be your credentials
to authenticate you to the mongo cluster
- The
SMTP_*
variables for the mail server (to send emails) BACKEND_BASE_API
with something likehttp://localhost:3001/api/v1
FRONTEND_HOST
withhttp://localhost:5173
(default port for vite)
- Start mongo cluster
$ docker compose up -d
# init replica sets & shards (you will have to wait ~25s)
$ ./mongo/init.sh
# to create the user in mongo (for the backend)
$ ./mongo/create-user.sh
If you are too lazy to remove all the volumes from the mongos, I have created a script to remove them.
- Start backend
$ cd backend
$ cargo r
- Start frontend
$ cd ../frontend
$ yarn dev
- Go to localhost:5173 (or whichever you choose)