mirror of
https://github.com/barthuijgen/factorio-sites.git
synced 2024-11-24 08:52:36 +02:00
1.6 KiB
1.6 KiB
FactorioSites
Mono-repo for Factorio Blueprints.
Factorio Blueprints delivers a platform to easily share blueprints and with minimal effort get the most value from them, with advanced search and real-time rendering of blueprints.
Links
Credits
Factorio Blueprints uses a part of the Factorio blueprint editor by Teoxoy. Lisenced MIT.
This amazing project allows us to render real time high quality images directly when opening any blueprint.
Want to contribute?
Prerequisites
- A postgres database (docker-compose.yml provided)
- A Google Cloud Platform project
Setting up the project
- Add a
.env.local
file to apps/blueprints/ with the following values
POSTGRES_DB=factorio-blueprints
POSTGRES_USER=factorio-blueprints
#POSTGRES_HOST=127.0.0.1
#POSTGRES_PASSWORD=local
STEAM_WEB_API_KEY=(optional, for steam login)
GOOGLE_APPLICATION_CREDENTIALS="full/path/to/json-key-file.json"
GCP_BLUEPRINT_STRINGS_BUCKET=blueprint-strings
GCP_BLUEPRINT_IMAGES_BUCKET=blueprint-images
- Add a
.env
file to apps/blueprints/prisma with a database connection url like
DATABASE_URL="postgresql://factorio-blueprints:local@127.0.0.1:5432/factorio-blueprints"
- Run DB migration
cd apps/blueprints && npx prisma migrate deploy --preview-feature
- Run local app
nx serve