- Remove .example from .env.example and fill in your firebase credentials
- Install packages with:
pnpm install
- Run with:
pnpm dev
- Go to localhost:3000
- You'll see the
/login
page and you won't be able to access the index page due to not being logged in (functionality isn't present)
When .env present at build time the keys are build in the code and the app will work with docker. But the docker keys won't be used, instead the keys at build will be used.
- Fill in your credentials in docker-compose.yml
- Run
docker-compose up
- Go to localhost:3000
- You'll see the
/login
page and you won't be able to access the index page due to not being logged in (functionality isn't present)
When .env not present during build. The app will show a white screen with docker and the docker keys won't be used
- Remove the .env file (or rename it to .env.example again so you'll not have to fill it in later again)
- Run
docker-compose up --build
(Add --build to make sure the image is rebuild) - Go to localhost:3000
- You'll see an empty page. If you try you'll be able to access the index page eventhough this one is empty to.
I want to be able to build the app without keys and use the vuefire keys at runtime. So the app can be used in different environments with different firebase accounts.