git clone --recursive https://git.cardiff.ac.uk/c21052928/energy-data-centre-visualisation.git
You have to download and unzip the following 7z files from our S3 bucket:
- https://d5g8.c14.e2-1.dev/kavin-cardiff-uni-fra/dataset.7z
- https://d5g8.c14.e2-1.dev/kavin-cardiff-uni-fra/infuse_lsoa_lyr_2011_simplified.7z
You must unzip them to a directory and set the DATA_DIR
environment variable to that directory.
You may prefer setting it up on the environment variable your IDE, or you can do it on the command line:
On Linux/MacOS:
export DATA_DIR=/path/to/dataset
On Windows:
$env:DATA_DIR = "/path/to/dataset"
cd into the frontend directory, then run:
pnpm install
For the contact form to work, can use and create the following .env
file:
NUXT_MAILHOST=smtp.ethereal.email
NUXT_MAILPORT=587
[email protected]
NUXT_MAILPASSWORD=pZqtzKbprNDherKFEU
[email protected]
Alternatively, you can set them manually as environment variables.
cd into the frontend directory, then run:
pnpm dev
You can then access the frontend at http://localhost:3000.
cd into the frontend directory, then run:
pnpm build
node .output/server/index.mjs
You can then access the frontend at http://localhost:3000.
cd into the backend directory, then run:
pip install -r requirements.txt
Assuming you have already set the DATA_DIR
environment variable, you must also set the following environment variables:
- REDIS_URI - The URI of the Redis server, for example,
redis://localhost:6379
.
Assuming you have already set the DATA_DIR
and REDIS_URI
environment variables set,
cd into the backend directory, then run:
python initialise_csv.py
Assuming you have already set the DATA_DIR
and REDIS_URI
environment variables set,
cd into the backend directory, then run:
uvicorn main:app --reload
This will start the backend server on port 8000 while binding to localhost.