Skip to content

xansaul/ollama-chat

Repository files navigation

Getting Started

Setup the project for development:

  1. First, clone .env.template to .env and set the variables

  2. Run the docker-compose.yml:

    docker-compose up -d
  3. Pull ollama model:

    # In the folder of docker-compose.yml
    docker-compose exec ollama ollama pull llama3.1
  4. Install dependencies:

    npm install
  5. Run database migrations:

    npx prisma migrate dev
  6. Run the development server:

    npm run dev

    Open http://localhost:3000 with your browser to see the result.

Setup the project for personal use:

  1. First, clone .env.template to .env and set the variables

  2. Run the docker-compose.yml:

    docker-compose up -d
  3. Pull ollama model:

    # In the folder of docker-compose.yml
    docker-compose exec ollama ollama pull llama3.1
  4. Install dependencies:

    npm install
  5. Run database migrations:

    npx prisma migrate deploy
  6. Create the production build:

    npm run build
  7. Run server:

    npm start

    Open http://localhost:3000 with your browser to see the result.

About

NextJS + Ollama

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published