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.git
or if you use HTTPS:
git clone https://github.com/ProgramadoresSemPatria/sem-patria-community.git
cd sem-patria-community
Once 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 use
Install dependencies:
pnpm recommended
pnpm i
Copy env example:
cp .env.example .env
Set 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_TOKEN
with the created token - Change the value of variable
USERS_WHITELIST
to 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 migrate dev
This 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 studio
This will open Prisma Studio in your default web browser, allowing you to view and manipulate your data directly.
With the cloud database url
pnpm dev
Without 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.