A platform for Borderless members to connect, collaborate, and share knowledge within the community.
To clone the repository to your local machine, follow these steps:
- Open a terminal
- Navigate to the directory where you want to clone the repository
- Execute the following command:
git clone git@github.com:ProgramadoresSemPatria/sem-patria-community.gitor if you use HTTPS:
git clone https://github.com/ProgramadoresSemPatria/sem-patria-community.git cd sem-patria-communityOnce you have cloned the repository, you need to install the project's dependencies.
Use the recommended node version which is >=20.x
If you have nvm:
nvm useInstall dependencies:
pnpm recommended
pnpm iCopy env example:
cp .env.example .envSet env values according to your credentials.
- Generate a personal key in your GitHub 1.1 Click in your user -> Settings -> Developer Settings -> Personal access tokens -> Generate a classic token
- Change the value of variable
GITHUB_TOKENwith the created token - Change the value of variable
USERS_WHITELISTto your github username
⚠️ DO NOT COMMIT YOUR PERSONAL TOKEN
Before start development server, you need to ensure that database is configured.
To set up the database schema and apply any pending migrations, execute the following command:
pnpm prisma-migrateThis command will ensure that your database is up to date with the latest changes defined in your Prisma schema.
To visually explore and interact with your database, you can use Prisma Studio. Run the following command:
pnpm prisma studioThis will open Prisma Studio in your default web browser, allowing you to view and manipulate your data directly.
With the cloud database url
pnpm devWithout the cloud database url (running postgreSQL locally with docker)
pnpm dev:local
- **Ensures users set up PostgreSQL correctly** (via Homebrew, Apt, or Docker).
- **Guides users through creating a Clerk account** and configuring authentication.Open http://localhost:3000 with your favorite browser.