Welcome to vota.dev!
This is a work in progress!
- Install the project with
npm install
- Initialize the
@prisma/client
withnpm prisma generate
- Set-up your environment variables following the
.env.example
file. NOTE: The environment file must be named like:.env
- You can get the
GITHUB_ID
andGITHUB_SECRET
following GitHub - Set-Up an OAuth Application - You can get the
DATABASE_URL
following Using Railway
- You can get the
- Migrate the prisma generated database to the PostgreSQL on Railway with
npx prisma migrate dev
- You can now start developing for vota.dev
- Login to Login - GitHub
- Enter your applications in developer settings Apps - GitHub
- Inside
OAuth Apps
click onNew OAuth App
and fill the fields.- You can set the 'Homepage URL' to
http://vota.dev
and the 'Callback URL' tohttp://localhost:3000/api/auth/
- You can set the 'Homepage URL' to
- You can retrieve the Client ID and the Client Secret there
- Login to Login - Railway
- Accept the ToS ToS - Railway
- Create a new project with PostgreSQL Create - Railway
- Claim the project
- On 'Environment', click on 'PostgreSQL' then click on 'Connect'
- You can retrieve the Postgres Connection URL there