Skip to content

Commit

Permalink
Add new files and update server configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
SDE-ADNAN committed Jan 5, 2024
1 parent 2785df9 commit 429d926
Show file tree
Hide file tree
Showing 23 changed files with 177 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ app.use('/jarvis/admin', adminRoutes);
// res.send("<h1>Welcome to todo backend </h1>")
// })

// for serving clientside react pages ( which are built using "npm run build" or "vite build")
app.use(express.static("public"));
app.use("/*", (req, res) => {
res.sendFile(path.join(__dirname, "/public/index.html"))
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "./dist/app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "NODE_ENV=production node ./dist/app.js",
"start": "NODE_ENV=production cd ../admin-client && npm run build && rm -rf ../server/public && mkdir -p ../server/public && mv ./build/* ../server/public && cd ../server && node ./dist/app.js",
"dev": "NODE_ENV=development nodemon ./dist/app.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions server/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
23 changes: 23 additions & 0 deletions server/public/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"files": {
"main.css": "/static/css/main.013f3146.css",
"main.js": "/static/js/main.c0b23865.js",
"static/media/bgfinaldark.jpg": "/static/media/bgfinaldark.b0e59fa0ba58246be184.jpg",
"static/media/bgfinallight.jpg": "/static/media/bgfinallight.4f070915fbd0bf061862.jpg",
"static/media/add.png": "/static/media/add.90b950d171bb0b3986d1.png",
"static/media/logo.png": "/static/media/logo.3c3caf3bbb73bd7d0eec.png",
"static/media/remove.png": "/static/media/remove.3c662b752278fc52f408.png",
"static/media/hidden.png": "/static/media/hidden.22c6a09acdf28a7b5e22.png",
"static/media/view.png": "/static/media/view.0b5c67b9c9c6e2b4b7d1.png",
"static/media/icons8-edit-512.svg": "/static/media/icons8-edit-512.2e57f723038d450219929250767e121d.svg",
"index.html": "/index.html",
"static/media/subtask.svg": "/static/media/subtask.0aee0a3293406f3c959e65a1925a9502.svg",
"static/media/rightarrow.svg": "/static/media/rightarrow.87f8be47de5397f44ad09947d6186828.svg",
"main.013f3146.css.map": "/static/css/main.013f3146.css.map",
"main.c0b23865.js.map": "/static/js/main.c0b23865.js.map"
},
"entrypoints": [
"static/css/main.013f3146.css",
"static/js/main.c0b23865.js"
]
}
Binary file added server/public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions server/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/manifest.json"/><title>Todo App</title><script defer="defer" src="/static/js/main.c0b23865.js"></script><link href="/static/css/main.013f3146.css" rel="stylesheet"></head><body><div id="root"></div><div id="modal-root"></div><div id="loader"></div></body></html>
15 changes: 15 additions & 0 deletions server/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions server/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
2 changes: 2 additions & 0 deletions server/public/static/css/main.013f3146.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions server/public/static/css/main.013f3146.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions server/public/static/js/main.c0b23865.js

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions server/public/static/js/main.c0b23865.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.8.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router DOM v6.15.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.15.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions server/public/static/js/main.c0b23865.js.map

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 429d926

Please sign in to comment.