Skip to content

yangnoahlin/future-xplorer

 
 

Repository files navigation

TDRI - 未來情境探索輔助工具

This project is build with Nuxt 3 and Tailwind CSS.

Prerequisites

Create a .env file

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

IMAGE_NAME=<IMAGE_NAME>
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> to ghcr.io/eesoymilk/future-xplorer:main and run the Docker compose with the .env file:

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

Development Server

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

  • Vue 58.3%
  • TypeScript 41.0%
  • Other 0.7%