monorepo for cloudboi projects
for windows, please run everything in WSL
- python>=3.12.0
- nodejs>=22
- pnpm
npm install --global pnpm
- docker
- install git
- Enable WSL Feature in Windows then reboot system
- Install Ubuntu from Microsoft Store, setup password by open Ubuntu
https://www.docker.com/products/docker-desktop/
- clone the project
- open up terminal in
cloudboi
folder - do
wsl
then do the following command
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "$HOME/.docker" -R
sudo apt update
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python-is-python3 python3 python3.12-venv python3-pip python3-full git make
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 23
nvm use 23
npm install -g pnpm
make install
- then run
make dev
to start the project
please create a branch with feature as name then request a pull request review on that branch
-
Initialize the database:
make db-up
-
Run the project:
- Locally:
make dev
- In Docker:
make docker-up
- Locally:
-
Run specific services:
- Locally:
make dev-service_name # Replace service_name with the service you want to run Ex. make dev-frontend
- In Docker:
make service_name-up # Replace service_name with the service you want to run Ex. make dev-frontend
- Locally:
- TBD
- run the following command(don't forget to open docker desktop first)
make db-up backend-debug
- click on debug tab on vs code
fastapi should auto generate schema at http://localhost:8000/docs
make sure the project is running and then execute this command in another terminal
make gen-client
or you can manually use pnpm in project folder
cd frontend
pnpm gen-client