Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sm18lr88 opened this issue Dec 13, 2023 · 2 comments
Open

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

sm18lr88 opened this issue Dec 13, 2023 · 2 comments

Comments

@sm18lr88
Copy link

sm18lr88 commented Dec 13, 2023

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
},
};

  1. /frontend/tsconfig.json:
  • Changed moduleResolution to "node", and switched a few things to false:

{
"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" }]
}

  1. /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

  1. In order to run, I did:
  • In the backend folder: npm install -> npm run build -> npm start
  • In the frontend folder: npm install -> npm run build->npm run dev`
@KulkarniShrinivas
Copy link
Owner

KulkarniShrinivas commented Dec 13, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants