Skip to content

dechnology/future-xplorer

Repository files navigation

TDRI - 創新情境生成工具

This project is built with Nuxt 3 and Tailwind CSS, and can be hosted using docker-compose.

Prerequisites

Create a .env file

Create a .env file in the root of the project with the following content:

IMAGE_NAME=<IMAGE_NAME> # you specify the image name you want to use, local or prebuilt.
MONGO_USER=<MONGO_USER>
MONGO_PASSWORD=<MONGO_PASSWORD>
MONGO_HOST=<MONGO_HOST>
MONGO_PORT=<MONGO_PORT>
MONGO_DB=<MONGO_DB>
OPENAI_API_KEY=<OPENAI_API_KEY>

S3_DOMAIN=<S3_DOMAIN>
S3_ACCESS_KEY_ID=<S3_ACCESS_KEY_ID>
S3_SECRET_ACCESS_KEY=<S3_SECRET_ACCESS_KEY>

Usage with self-built Docker

Build the Docker image for Nuxt 3 App

docker build -t <IMAGE_NAME> .

Run the Docker compose with the .env file

docker compose --env-file .env.docker up -d

Usage released Docker registry

We have released the Docker image to the GitHub Container Registry, you set the <IMAGE_NAME> in .env to ghcr.io/eesoymilk/future-xplorer:main and run the docker-compose:

docker compose --env-file .env.docker up -d

Development Server (dev mode)

Install dependencies

Make sure to install the dependencies:

yarn install

Run the development server

Start the development server on http://localhost:3000:

yarn dev

Check out the deployment documentation for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages