👀 To make Biome work with auto-formatting, make sure to have
Biomeas the default code formatter. You can find the configuration with the commandCTRL + ,orCMD + ,for MacOS users and search for thevscode://settings/editor.defaultFormatter. This will read the monorepo Biome configuration. Make sure to have the Biome extension in your IDE before doing any installation.
This project uses Husky to manage Git hooks. These hooks ensure code quality and consistency:
-
pre-commit: Runs before each commit to:
- Format code using Biome
- Run linting checks
- Only processes staged files
-
commit-msg: Validates commit messages to ensure they follow our conventions
- Clone the repository:
git clone https://github.com/Stellar-Rent/stellar-rent.git
cd stellar-rent- To install all dependencies, run the following command in the root:
bun installThis will install all dependencies for the frontend, backend, and development tools (Biome, husky, etc.)
- Fist create a supabase account at https://supabase.com/
- Create a new project with name of stellar-rent and select the region closest to you
- To get the .env values navigate to
project settings sectionon the sidebar and click onData Apithere you will have listed the values you need, copy them to theapps/backend/.envfile
PORT="your port"
SUPABASE_URL="your supabase url"
SUPABASE_ANON_KEY="your supabase anon key"
JWT_SECRET="your jwt secret"
SUPABASE_SERVICE_ROLE_KEY="your supabase service role key"
USE_MOCK=trueOnce the .env is set up, you can start the backend and frontend:
# In one terminal
cd apps/backend
bun dev
# In another terminal
cd apps/web
bun devYou now will have the frontend and backend up and running