chore: reorganize client files for docker
|
@ -5,7 +5,7 @@ const cors = require('cors');
|
||||||
const routes = require('./routes');
|
const routes = require('./routes');
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = process.env.PORT || 3050;
|
const port = process.env.PORT || 3050;
|
||||||
const projectPath = path.join(__dirname, '..', '..');
|
const projectPath = path.join(__dirname, '..', '..', 'client');
|
||||||
dbConnect().then(() => console.log('Connected to MongoDB'));
|
dbConnect().then(() => console.log('Connected to MongoDB'));
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
|
20155
client/package-lock.json
generated
Normal file
79
client/package.json
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
{
|
||||||
|
"name": "chatgpt-clone",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"build": "Webpack .",
|
||||||
|
"build-dev": "Webpack . --watch"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/danny-avila/chatgpt-clone.git"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/danny-avila/chatgpt-clone/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/danny-avila/chatgpt-clone#readme",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-alert-dialog": "^1.0.2",
|
||||||
|
"@radix-ui/react-dialog": "^1.0.2",
|
||||||
|
"@radix-ui/react-dropdown-menu": "^2.0.2",
|
||||||
|
"@radix-ui/react-label": "^2.0.0",
|
||||||
|
"@radix-ui/react-tabs": "^1.0.2",
|
||||||
|
"@reduxjs/toolkit": "^1.9.2",
|
||||||
|
"class-variance-authority": "^0.4.0",
|
||||||
|
"clsx": "^1.2.1",
|
||||||
|
"crypto-browserify": "^3.12.0",
|
||||||
|
"highlight.js": "^11.7.0",
|
||||||
|
"lucide-react": "^0.113.0",
|
||||||
|
"markdown-to-jsx": "^7.1.9",
|
||||||
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0",
|
||||||
|
"react-redux": "^8.0.5",
|
||||||
|
"react-textarea-autosize": "^8.4.0",
|
||||||
|
"react-transition-group": "^4.4.5",
|
||||||
|
"swr": "^2.0.3",
|
||||||
|
"tailwind-merge": "^1.9.1",
|
||||||
|
"tailwindcss-animate": "^1.0.5",
|
||||||
|
"url": "^0.11.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/cli": "^7.20.7",
|
||||||
|
"@babel/core": "^7.20.12",
|
||||||
|
"@babel/eslint-parser": "^7.19.1",
|
||||||
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
||||||
|
"@babel/preset-env": "^7.20.2",
|
||||||
|
"@babel/preset-react": "^7.18.6",
|
||||||
|
"@babel/runtime": "^7.20.13",
|
||||||
|
"autoprefixer": "^10.4.13",
|
||||||
|
"babel-loader": "^9.1.2",
|
||||||
|
"babel-plugin-root-import": "^6.6.0",
|
||||||
|
"babel-preset-react": "^6.24.1",
|
||||||
|
"css-loader": "^6.7.3",
|
||||||
|
"eslint": "^8.33.0",
|
||||||
|
"eslint-config-airbnb-base": "^15.0.0",
|
||||||
|
"eslint-config-prettier": "^8.6.0",
|
||||||
|
"eslint-plugin-jest": "^27.2.1",
|
||||||
|
"eslint-plugin-react": "^7.32.2",
|
||||||
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
|
"html-webpack-plugin": "^5.5.0",
|
||||||
|
"path": "^0.12.7",
|
||||||
|
"postcss": "^8.4.21",
|
||||||
|
"postcss-loader": "^7.0.2",
|
||||||
|
"postcss-preset-env": "^8.0.1",
|
||||||
|
"prettier": "^2.8.3",
|
||||||
|
"prettier-plugin-tailwindcss": "^0.2.2",
|
||||||
|
"source-map-loader": "^1.1.3",
|
||||||
|
"style-loader": "^3.3.1",
|
||||||
|
"tailwindcss": "^3.2.6",
|
||||||
|
"ts-loader": "^9.4.2",
|
||||||
|
"typescript": "^4.9.5",
|
||||||
|
"webpack": "^5.75.0",
|
||||||
|
"webpack-cli": "^5.0.1",
|
||||||
|
"webpack-dev-server": "^4.11.1"
|
||||||
|
}
|
||||||
|
}
|
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 828 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
158490
client/public/main.js
Normal file
1
client/public/main.js.map
Normal file
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 432 KiB After Width: | Height: | Size: 432 KiB |