Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.09 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.09 KB

ChatDnd

This project is auto dialog generator for Dungeons & Dragons games. The robot could response randomly per user input.

Set Up

Run npm install and add environment.ts file inside the src directory with following content:

Run Frontend Locally

Run npm run start to start the project in http://localhost:4200/.

Run Backend

run npm run start:serverto start the project in http://localhost:3000/.

Run Frontend Github CodeSapce

  1. npm run ng serve -- --host=0.0.0.0 --disable-host-check.
  2. set port from private to public.

Environment Setup

environment.ts
export class environment {
    public static openAI = {
        OPENAI_API_KEY: ''
    }
}

environment.js
class environment {
    static mongoDB = {
        MONGODB_ATLAS_URI: 'mongodb+srv://slothbettyz:<password>@chatdnd.49dfejo.mongodb.net/?retryWrites=true&w=majority',
        MONGODB_LOCAL_URI: 'mongodb://localhost:27017'
    }
}

module.exports = environment;

Generated OpenAI private key in OpenAI API page and paste into the '' above.
Generated MongoDb password paste into the <passward> above.