A better cloud
git clone https://github.com/logscore/Nimbus.git
cd Nimbusbun iWe use Docker to run a PostgreSQL database for local development. Follow these steps to set it up:
-
Start the database:
bun db:up
This will start a Postgres container with default credentials:
- Host:
localhost - Port:
5432 - Database:
nimbus - Username:
postgres - Password:
postgres
- Host:
-
Verify the database is running if running a detatched container:
docker compose ps
You should see the
nimbus-dbcontainer in the list with a status of "Up". -
Connect to the database (optional):
# Using psql client inside the container docker compose exec postgres psql -U postgres -d nimbus
Copy the .env.example file to .env using this command, cp .env.example .env and fill in these values:
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# To generate a secret, just run `openssl rand -base64 32`
BETTER_AUTH_SECRET=After setting up the database, run the migrations:
bun db:migrateIn a new terminal, start the development server:
NOTE: this starts both the web and server development servers, to run just one, use
bun dev:weborbun dev:server. Both will need the db running to work.
bun devThe application should now be running at http://localhost:3000