KulkarniShrinivas / NexGen_ChatBot

Developed a secure and scalable NextGen-ChatBot using the MERN Stack with advanced authentication by implementing middlewares and TypeScript, delivering a production-ready SaaS application for seamless and reliable conversational experiences for users.
https://nextgen-chatbot-app.netlify.app/
4 stars 3 forks source link

A bunch of changes I had to do to run it #1

Open sm18lr88 opened 10 months ago

sm18lr88 commented 10 months ago

First, thanks for the program.

I'm not a programmer, so I use ChatGPT to help me figure things out. I eventually figured out how to get most of it running except the sign-up page:

1) /frontend/.eslintrc.cjs:

module.exports = { root: true, env: { browser: true, es2020: true, }, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended', ], ignorePatterns: ['dist', '.eslintrc.js'], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint', 'react-refresh'], rules: { '@typescript-eslint/no-unused-vars': 'off', // Disabling the rule for no unused variables }, };

2) /frontend/tsconfig.json:

{ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true, "esModuleInterop": true,

/* Bundler mode */
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",

`/* Linting */`
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true

}, "include": ["src"], "references": [{ "path": "./tsconfig.node.json" }] }

3) /backend/.env file created with:

MongoDB Configuration

MONGODB_URL=mongodb://localhost:27017/chatbotDB # this is the mongoDB I set up locally.

Server configuration

PORT=5000

You can add other variables as needed, for example, if the application requires JWT secret for authentication or API keys for external services.

JWT_SECRET=your_jwt_secret_here

4) In order to run, I did:

KulkarniShrinivas commented 10 months ago

Hi @sm18lr88, thank you for creating the issue. As the project is still in progress, I will review the issue you raised, and if necessary, I will address it or merge it. In the future, feel free to contribute by forking the project, creating a pull request, and I will review your code.

Thank you!

sm18lr88 commented 10 months ago

Thanks. I'm sorry I haven't learned how to fork and pull yet. I'll work on it.