Skip to content

GuillaumeCa/circus-pes

Repository files navigation

Circus PES

Getting Started (local env)

Prerequisites:

  • Postgres DB
  • Discord oauth credentials
  • Minio credentials
  • node+npm

Install dependencies

npm install
# or
yarn install

Setup Prisma

  • Add .env file at the root of the project and add the postgres url:
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/circus-pes
  • To init the Postgres database with the migrations files:
npx prisma migrate dev

Setup Discord, Minio and auth

  • Add .env.local and copy the following lines into it:
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=<secret to generate>

DISCORD_ID=<client id>
DISCORD_SECRET=<client secret>

NEXT_PUBLIC_MINIO_ENDPOINT=storage.circuspes.fr
NEXT_PUBLIC_MINIO_IMAGE_BUCKET_NAME=circuspes-images-test
MINIO_ACCESS_KEY=<access key>
MINIO_SECRET_KEY=<secret key>

Run the development server for nextjs:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

About

Site répertoriant les créations des joueurs dans l'univers persistant de StarCitizen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages