Imagina poder encontrar e tomar café com portugueses que trabalham em tech, em qualquer parte do mundo.
Poder fazer perguntas antecipadamente quando estás a considerar uma mudança ou fazer crescer o teu produto ou startup por teres acesso a insights locais. E fazê-lo sem atrito. Mesmo quando só estás de passagem por uma semana. É o que estou a tentar tornar mais fácil com a Outono.
A Outono é uma comunidade de programadores, designers e empreendedores Portugueses que vivem lá fora. Com hubs em várias cidades, começando em Berlim.
Este projeto é construido com Next.js, Supabase, Resend e Github Actions.
-
Clone the repository:
git clone https://github.com/malikpiara/outono.org.git cd outono.org
-
Install dependencies:
pnpm install
-
Start Docker: Ensure Docker is running on your machine before proceeding.
-
Set up local Supabase:
supabase init supabase start
-
Set up environment variables:
- Copy
.env.example
to.env.local
- Update the values in
.env.local
with your local Supabase credentials
- Copy
-
Set up a test user:
- Access your local Supabase Studio at http://localhost:54323
- Create a user with email '[email protected]' in the Auth section
-
Update the mock user ID:
- In
utils/supabase/server.js
, replace themockUserId
value with the ID of the test user you created
- In
-
Run the development server:
pnpm dev
-
Open http://localhost:3000 in your browser to see the result.
Docker is used to run the local Supabase instance, which includes PostgreSQL, GoTrue (for authentication), PostgREST, and other Supabase services.
The supabase start
command initializes and runs these Docker containers.
You can view running Supabase containers with docker ps
.
To stop and remove Supabase containers, use supabase stop
.
- Local Authentication: In development, the app uses a mock authentication system. Any login attempt will succeed and use the test user's credentials.
- Real Data: Despite using mock authentication, the app interacts with real data in your local Supabase instance.
- Environment Sync: Ensure your local Supabase schema matches your production environment.
- Testing: Always thoroughly test authentication flows in a staging environment before deploying to production.
- Security: Be cautious not to commit any real user IDs or sensitive information to version control.
To stop the local Supabase instance:
supabase stop
pnpm dev
: Starts the development serverpnpm build
: Builds the app for productionpnpm start
: Runs the built app in production modesupabase db reset
: Resets your local database to its initial state