Let's build the best hackathon platform.
What we use:
If you don't have Docker installed, you can download it from here.
There's other ways of installing it, but we recommend using Docker Desktop because of its helpful UI.
You'll also need Node.js installed. You can download it from here.
We use Yarn as our package manager. You can install it by running:
npm install -g yarnyarn installCopy .env.example to .env and fill in the necessary environment variables.
You will need to set NEXTAUTH_SECRET to a random string.
We recommend using a password generator to create a secure secret or you can use the following command to generate a random string:
openssl rand -base64 32You will also need to set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET if you want to enable Google OAuth.
There is information about how to install Google OAuth credentials in the Additional Setup section.
docker-compose up -d dbNote: If you have a local PostgreSQL server running, you may need to stop it before running the Docker container.
Note: You can also build and run the app itself with Docker by running docker-compose up -d --build.
yarn prisma migrate devyarn devYou should now be able to access the app at http://localhost:8000.
Happy hacking! 🚀
To enable Google OAuth, you'll need to create a project in the Google Developer Console and create OAuth credentials.
-
Go to the Google Developer Console and create a new project.
-
Go to the "Credentials" tab and click "Create credentials" > "OAuth client ID".
-
Select "Web application" as the application type.
-
Add
http://localhost:8000/api/auth/callback/googleas an authorized redirect URI. -
Copy the client ID and client secret into your
.envfile asGOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET. -
Restart the development server.
You should now be able to sign in with Google.