Open sm18lr88 opened 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!
Thanks. I'm sorry I haven't learned how to fork and pull yet. I'll work on it.
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:
moduleResolution
to "node", and switched a few things tofalse
:{ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true, "esModuleInterop": 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:
npm install
->npm run build
->npm start
npm install ->
npm run build->
npm run dev`