1.1 KiB
1.1 KiB
Museum Analytics
⚙️ Configuration Setup
This project uses environment variables to secure sensitive information. Follow these steps to configure your local environment:
- Duplicate the template file:
Copy the
.env.examplefile and rename it to.envin the root directory.cp .env.example .env - Update your keys:
Open the newly created
.envfile in your text editor and replace the placeholder values with your actual credentials:WIKIPEDIA_USER_AGENT="MuseumAnalytics/0.1 (your_email_address)"
⚠️ Important: Never commit your .env file to Git. It is already added to .gitignore to protect your secrets.
Installation
- Make sure docker is installed: see https://docs.docker.com/get-started/get-docker/ for instructions.
- Clone the repo
git clone https://git.hanspayer.com/hpayer/museum_analytics.git - Build and start the museum analytics server with docker:
cd ./api docker build --network=host --no-cache -t museum-analytics-server .