Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
567f00f
Add initial test file for multiplication functionality
Code-lab-web May 26, 2025
a52f9af
Add tests for multiplication function and implement firstLast utility
Code-lab-web May 26, 2025
ce09589
Add express-list-endpoints import to server.js
Code-lab-web May 28, 2025
240d036
Update root route response to include welcome message and list endpoints
Code-lab-web May 28, 2025
cfd944b
Update .gitignore and package.json to include dotenv and mongodb depe…
Code-lab-web May 28, 2025
dd91885
git commit -m "Code-lab-web"
Code-lab-web May 28, 2025
611b809
Add utility functions for string manipulation and update related tests
Code-lab-web May 28, 2025
fe92028
Merge branch 'master' of https://github.com/Code-lab-web/express-api-…
Code-lab-web May 28, 2025
23a8569
Merge branch 'master' of https://github.com/Code-lab-web/express-api-…
Code-lab-web May 28, 2025
6566d8b
Add initial data.json file
Code-lab-web May 28, 2025
882ba7a
Fix import statements and add data endpoint to serve JSON data
Code-lab-web May 28, 2025
8d06175
Add endpoint to retrieve data by ID and log request parameters
Code-lab-web May 28, 2025
128c4a8
git "Code-lab-web"
Code-lab-web May 30, 2025
863c839
git commit -m "Code-lab-web"
Code-lab-web May 29, 2025
9219214
git commit -m "Code-lab-web"
Code-lab-web May 30, 2025
bb1a784
Add express-list-endpoints integration and update endpoint response s…
Code-lab-web May 30, 2025
7c84814
Fix import statement formatting in multiplication test
Code-lab-web May 30, 2025
27063a2
git commit -m "Code-lab-web"
Code-lab-web May 30, 2025
8a3b3d1
git commit -m "Code-lab-web"
Code-lab-web May 30, 2025
f11dc62
git commit -m "Code-lab-web"
Code-lab-web May 30, 2025
0b6d430
Add express-list-endpoints functionality with TypeScript definitions
Code-lab-web May 30, 2025
20fe2f9
git commit -m "Code-lab-web"
Code-lab-web May 30, 2025
a60837c
git commit -m "Code-lab-web"
May 29, 2025
73dc0ed
Code-lab-web
May 29, 2025
348bf40
git commit -m "Code-lab-web"
May 30, 2025
68c6bbd
git commit -m "Code-lab"
May 30, 2025
2855c06
Merge remote-tracking branch 'origin/HEAD'
May 31, 2025
f63f125
Refactor babel-node and nodemon binaries to use symlinks
Code-lab-web Jun 3, 2025
9499b77
Fix route handling and improve endpoint responses in server.js
Code-lab-web Jun 3, 2025
3523b2b
git commit -m "Code-lab-web"
Code-lab-web Jun 3, 2025
d753ea6
Add redirects for various paths in _redirects.md
Code-lab-web Jun 3, 2025
a85f955
Add PBS scripts and cleanup utility for MongoDB stress testing
Code-lab-web Jun 3, 2025
f1d9d96
Implement thoughts API with database seeding and error handling
Code-lab-web Jun 3, 2025
b8aaa4d
Implement feature enhancements and optimize performance across the ap…
Code-lab-web Jun 4, 2025
e2f7340
Fix typo in Thought model definition in server.js
Code-lab-web Jun 4, 2025
4b9a476
Fix mongoose model definition and add PATCH endpoint for updating tho…
Code-lab-web Jun 4, 2025
62c23c8
git commit -m "Code-lab-web"
Code-lab-web Jun 4, 2025
32ecaaf
Add client-server authentication implementation with socket programming
Code-lab-web Jun 4, 2025
6042061
Add Person model definition with validation for name and height
Code-lab-web Jun 4, 2025
ce5161b
Fix formatting issues in server.js and add body-parser middleware for…
Code-lab-web Jun 4, 2025
b529b46
Update .gitignore, add new dependencies in package.json, and implemen…
Code-lab-web Jun 4, 2025
45b53db
Refactor server.js for improved error handling and code consistency; …
Code-lab-web Jun 4, 2025
0adb937
Add Task model with validation and connect to MongoDB in server.js
Code-lab-web Jun 4, 2025
da96440
Add endpoint to retrieve all tasks, sorted by creation date
Code-lab-web Jun 4, 2025
6b45b0b
Refactor POST endpoint for creating a person to use async/await and i…
Code-lab-web Jun 5, 2025
65c022f
Add POST endpoint for creating tasks with error handling
Code-lab-web Jun 5, 2025
43d9059
Migrate application to React; implement fetching and posting of thoughts
Code-lab-web Jun 5, 2025
f3826c4
Add React and dom packages to dependencies; update package-lock.json
Code-lab-web Jun 5, 2025
152259c
Add Header component with buttons for removing all thoughts and reset…
Code-lab-web Jun 5, 2025
86eeb34
Add Thought component with message display, like, and delete buttons
Code-lab-web Jun 5, 2025
511035d
Add ThoughtForm component for submitting new thoughts
Code-lab-web Jun 5, 2025
b48fcc5
Add ThoughtList component to display a list of thoughts
Code-lab-web Jun 5, 2025
ddc9399
Add App.css for styling components with light and dark themes
Code-lab-web Jun 5, 2025
e0d2329
Refactor App component to integrate Header, ThoughtForm, and ThoughtL…
Code-lab-web Jun 5, 2025
5228ef4
Add main.jsx to define App component structure with Header, ThoughtFo…
Code-lab-web Jun 5, 2025
c6024ad
Add Vite as a development dependency for improved build performance
Code-lab-web Jun 5, 2025
effbc7c
Update Babel dependency to version 6.23.0 and adjust babel-node path
Code-lab-web Jun 5, 2025
1c30e5d
Update README.md to include React and Vite setup instructions and ESL…
Code-lab-web Jun 5, 2025
e121f9c
Add ESLint configuration for JavaScript and React with recommended rules
Code-lab-web Jun 5, 2025
b06419f
Add index.html file with basic structure for the application
Code-lab-web Jun 5, 2025
687460f
Add Vite configuration file for React application setup
Code-lab-web Jun 5, 2025
bceadd9
Add Zustand store for managing thoughts with createThought functionality
Code-lab-web Jun 5, 2025
2699c76
Add Zustand as a dependency and update package-lock.json
Code-lab-web Jun 5, 2025
8de864e
Update index.html to improve structure and include stylesheets
Code-lab-web Jun 5, 2025
bcd89f1
Add form.css for card styling and animations
Code-lab-web Jun 5, 2025
327ce91
Add Card component with props for title, description, icon, and selec…
Code-lab-web Jun 5, 2025
808919c
Add Card.css for styling and animations of Card component
Code-lab-web Jun 5, 2025
b7805cc
Add form.jsx for card component styling and animations
Code-lab-web Jun 5, 2025
d0c62cb
Refactor form.jsx to import styles from form.css
Code-lab-web Jun 5, 2025
ece42af
Add animation component with basic structure and CSS import
Code-lab-web Jun 5, 2025
c20c320
Add global styles and animations in animation.css
Code-lab-web Jun 5, 2025
5732b0e
git commit -m "Code-lab-web"
Code-lab-web Jun 5, 2025
8fba23f
Add devDependencies for ESLint and TypeScript
Code-lab-web Jun 5, 2025
9b5555b
Add ESLint configuration with TypeScript support
Code-lab-web Jun 5, 2025
7e53ad8
Add atlas package as a dependency and update package-lock.json
Code-lab-web Jun 5, 2025
3a2b2bf
Update Babel dependencies and fix minor issues in helper functions
Code-lab-web Jun 5, 2025
7a1459a
Fix formatting in server.js and add color filter to query
Code-lab-web Jun 5, 2025
25d60e5
Fix indentation in server.js for better readability
Code-lab-web Jun 5, 2025
d2f7dd3
Add render and traverser packages to dependencies in package.json and…
Code-lab-web Jun 5, 2025
f0a0ee5
Add crypto dependency and implement User model with access token gene…
Code-lab-web Jun 9, 2025
38b2fa9
Add python package to dependencies in package.json and package-lock.json
Code-lab-web Jun 9, 2025
47f4a5f
Implement one-way encryption for user passwords and save a sample use…
Code-lab-web Jun 9, 2025
d27521a
Add example for user password encryption and comparison in server.js
Code-lab-web Jun 9, 2025
b5d7318
Add session handling for user authentication with password verification
Code-lab-web Jun 9, 2025
04edbd7
Add authentication middleware to verify user access token
Code-lab-web Jun 9, 2025
13f7bce
Fix syntax errors and improve MongoDB connection handling in server.js
Code-lab-web Jun 9, 2025
c438ded
Add bcrypt and bcrypt-nodejs dependencies to enhance password handling
Code-lab-web Jun 9, 2025
afead65
Add comment to ensure MONGO_URL environment variable is set before ru…
Code-lab-web Jun 9, 2025
1715fcf
Add Netlify configuration for frontend build and redirects
Code-lab-web Jun 9, 2025
eaac9a7
Add project metadata and postinstall script to package.json
Code-lab-web Jun 9, 2025
3c1c5c8
Remove placeholder project name and postinstall script from package.json
Code-lab-web Jun 9, 2025
9ebcd2a
Add blank line for improved readability in launch.json
Code-lab-web Jun 9, 2025
b443e18
Refactor MongoDB connection handling and fix missing closing braces i…
Code-lab-web Jun 10, 2025
66bacf9
Fix formatting in server.js for consistent MongoDB URL declaration
Code-lab-web Jun 10, 2025
86ab06d
Fix indentation and remove unnecessary lines in server.js for improve…
Code-lab-web Jun 10, 2025
71bd8f4
Implement DELETE endpoint for thoughts and handle error responses
Code-lab-web Jun 11, 2025
ea13599
git commit -m "Code-lab-web"
Code-lab-web Jun 11, 2025
32447ae
Add thought schema definition and fix syntax errors in server.js
Code-lab-web Jun 11, 2025
79b7c87
Fix PATCH endpoint for thoughts to handle errors and return appropria…
Code-lab-web Jun 11, 2025
375012f
Fix PATCH endpoint to correctly update thought name and handle errors
Code-lab-web Jun 11, 2025
e39d6bd
Refactor thought schema definition and improve error handling in DELE…
Code-lab-web Jun 11, 2025
c532738
Update subproject commit to indicate dirty state
Code-lab-web Jun 11, 2025
eccd14c
nnpmnpmRefactor app.js to include routing for index and auth, and upd…
Code-lab-web Jun 12, 2025
d690bec
git commit -m "Code-lab-web"
Code-lab-web Jun 12, 2025
e166432
Add React components and error handling for character limit in input
Code-lab-web Jun 12, 2025
f9f5c81
Add initial CSS styles for the application layout and input error han…
Code-lab-web Jun 12, 2025
c18a3ba
Add state management and fetch data in App component with scroll even…
Code-lab-web Jun 12, 2025
dec546e
Add form component with state management and styling for user input
Code-lab-web Jun 12, 2025
187f1cb
Add authentication middleware for user validation
Code-lab-web Jun 13, 2025
397cc7f
Add user model with email, password, and access token fields
Code-lab-web Jun 13, 2025
a716c76
Add Thought model with schema for id, name, and color fields
Code-lab-web Jun 13, 2025
75d91bf
Add symbolism and lastThoughtTimestamp fields to Thought model; imple…
Code-lab-web Jun 13, 2025
aa471d5
Refactor import paths for User and Thought models; add user registrat…
Code-lab-web Jun 13, 2025
11cbd79
git commit -m "Code-lab-web"
Code-lab-web Jun 13, 2025
a08f54a
Add SignupForm component for user registration with email and passwor…
Code-lab-web Jun 13, 2025
7bd2d83
Add LoginForm component for user authentication with email and passwo…
Code-lab-web Jun 13, 2025
0449062
Add ColorFilter component for filtering items by color
Code-lab-web Jun 13, 2025
af35266
Add EditButton component for editing thoughts with prompt confirmation
Code-lab-web Jun 13, 2025
481cc87
Merge branch 'master' of https://github.com/Code-lab-web/express-api-…
Code-lab-web Jun 13, 2025
e387c0c
Merge branch 'master' of https://github.com/Code-lab-web/express-api-…
Code-lab-web Jun 13, 2025
8136901
Add ThoughtsGrid component for displaying thoughts with color filtering
Code-lab-web Jun 13, 2025
35f7a1e
Refactor App component to remove duplicate declaration and update Tho…
Code-lab-web Jun 13, 2025
60bfbaa
Add LoadingSpinner component for displaying loading state while fetch…
Code-lab-web Jun 13, 2025
fcf0ca7
git commit -m "Code-lab-web"
Code-lab-web Jun 13, 2025
c49b7aa
Refactor import statements in main.jsx for improved organization and …
Code-lab-web Jun 13, 2025
ee19e64
Refactor main.jsx to use StrictMode and createRoot for improved rende…
Code-lab-web Jun 13, 2025
78cbbc0
Add additional imports in App.jsx for improved functionality and comp…
Code-lab-web Jun 13, 2025
66923a0
Add additional imports in main.jsx for enhanced functionality and com…
Code-lab-web Jun 13, 2025
7eaa2be
Refactor App.jsx and main.jsx to improve import organization and enha…
Code-lab-web Jun 13, 2025
cbccee4
Add Animation component import in App.jsx and main.jsx for enhanced f…
Code-lab-web Jun 13, 2025
6b210f3
git commit -m "Code-lab-web"
Code-lab-web Jun 13, 2025
7e046f7
git commit -m "Code-lab-web"
Jun 13, 2025
f3bdc86
Add user and thought routes imports in server.js for improved routing…
Code-lab-web Jun 14, 2025
0add39d
Update VSCode settings to configure Python environment management
Code-lab-web Jun 14, 2025
cc5d743
Add symlink files for various CLI tools in node_modules/.bin
Code-lab-web Jun 14, 2025
f224d0f
Add loader element selection in index.js for preloader functionality
Code-lab-web Jun 16, 2025
d852029
git commit -m "Code-lab-web"
Code-lab-web Jun 16, 2025
0ae9dbd
Refactor components: migrate LoadingSpinner, ThoughtForm, Card, Color…
Code-lab-web Jun 16, 2025
9d88fd1
Remove unused ESLint dependencies from package.json
Code-lab-web Jun 17, 2025
3fa8f74
Add node_modules to .gitignore
Code-lab-web Jun 17, 2025
049257c
Update package.json and BSON files: add mongoose dependency and refac…
Code-lab-web Jun 17, 2025
7c0f9c5
git commit -m "Code-lab-web"
Code-lab-web Jun 17, 2025
5bc0f22
Refactor project structure: move user and thought models, update rout…
Code-lab-web Jun 18, 2025
1460517
Add README.md for Express API Starter Project with setup instructions…
Code-lab-web Jun 18, 2025
3eae0f6
Add Vite configuration for React frontend
Code-lab-web Jun 18, 2025
3a19495
Remove Vite configuration file for React frontend
Code-lab-web Jun 18, 2025
384bbd0
git commit -m "Code-lab-web"
Code-lab-web Jun 18, 2025
c722ec1
Update package.json to include missing closing brace
Code-lab-web Jun 18, 2025
1fa06f8
Replace sharded-mongo script with a new version in tests directory
Code-lab-web Jun 18, 2025
3f2d796
git commit -m "Code-lab-web"
Code-lab-web Jun 18, 2025
2101256
Add @fontsource/roboto dependency to package.json and update package-…
Code-lab-web Jun 30, 2025
5d393f0
Add MUI and styled-components dependencies to package.json
Code-lab-web Jun 30, 2025
0e51554
Add Roboto font and MUI icons to project dependencies
Code-lab-web Jun 30, 2025
a277776
Update package.json and package-lock.json to include React 19.1.0 and…
Code-lab-web Jun 30, 2025
6132d9e
git commit -m "Code-lab-web"
Code-lab-web Jun 30, 2025
01bb964
git commit -m "Code-lab-web"
Code-lab-web Jul 16, 2025
89c47eb
git commit -m "Code-lab-web"
Code-lab-web Jul 18, 2025
3476819
git commit -m "Code-lab-web"
Code-lab-web Jul 18, 2025
fd5494a
git commit -m "Code-lab-web"
Code-lab-web Jul 18, 2025
58e88b1
git commit -m "Code-lab-web"
Code-lab-web Jul 18, 2025
25bc697
git commit -m "Code-lab-web"
Jul 21, 2025
57262c0
git commit -m "Code-lab-web"
Jul 22, 2025
557b63b
git commit -m "Code-lab-web"
Jul 22, 2025
9d9af28
git commit -m "Code-lab-web"
Jul 22, 2025
94ce308
git commit -m "Code-lab-web"
Jul 22, 2025
5c5c41d
git commit -m "Code-lab-web"
Jul 22, 2025
1f026a8
git commit -m "Code-lab-web"
Jul 22, 2025
cbb3642
git commit -m "Code-lab-web"
Jul 22, 2025
2b17e46
git commit -m "Code-lab-web"
Jul 22, 2025
ca6c90e
git commit -m "Code-lab-web"
Jul 23, 2025
f7cce6a
git commit -m "Code-lab-web"
Jul 23, 2025
8a8a464
git commit -m "Code-lab-web"
Jul 24, 2025
bb33595
git commit -m "Code-lab-web"
Jul 24, 2025
37d48d1
git commit -m "Code-lab-web"
Aug 6, 2025
a7520fd
git commit -m "Code-lab"
Aug 7, 2025
a470ebc
git commit -m "Code-lab-web"
Aug 8, 2025
528f51a
git commit -m "Code-lab-web"
Aug 8, 2025
4c3bde1
git commit -m "Code-lab-web"
Aug 8, 2025
b167559
git commit -m "Code-lab-web"
Aug 8, 2025
32dc48f
git commit -m "Code-lab-web"
Aug 8, 2025
efcc140
git commit -m "Code-lab-web"
Aug 11, 2025
3a9ebe0
git commit -m "Code-lab-web"
Aug 12, 2025
2d45737
git commit -m "Code-lab-web"
Aug 13, 2025
94107e4
git commit -m "Code-lab-web"
Aug 14, 2025
184a580
git commit -m "Code-lab-web"
Aug 18, 2025
61e4dcb
git commit -m "Code-lab-web"
Aug 18, 2025
2c69b18
git commit -m "Code-lab-web"
Aug 21, 2025
0746190
git commit -m "Code-lab-web"
Aug 21, 2025
cc56f69
git commit -m "Code-lab-web"
Aug 21, 2025
71c72a7
git commit -m "Code-lab-web"
Aug 22, 2025
785eaec
git commit -m "Code-lab-web"
Aug 26, 2025
301727c
git commit -m "Code-lab-web"
Aug 26, 2025
24403d7
git commit -m "Code-lab-web"
Aug 27, 2025
3db5d1b
git commit -m "Code-lab-web"
Aug 27, 2025
3f228c3
git commit -m "Code-lab-web"
Aug 27, 2025
fec7cbc
git commit -m "Code-lab-web"
Aug 27, 2025
aaa30b9
git commit -m "Code-lab-web"
Aug 28, 2025
b286468
git
Aug 28, 2025
6ec653c
git commit -m "Code-lab-web"
Aug 29, 2025
3d6154a
git
Aug 29, 2025
25ee85b
git commit -m "Code-lab-web"
Sep 1, 2025
83258dd
git commit-m "Code-lab-web"
Sep 1, 2025
7eef001
git commit-m "Code-lab-web"
Sep 1, 2025
c22ea96
git commit -m "Code-lab-web"
Sep 1, 2025
fd3d1f2
git commit -m "Code-lab-web"
Sep 2, 2025
f013bc9
git commit -m "Code-lab-web"
Sep 4, 2025
4922c6b
git commit -m "Code-lab-web"
Sep 4, 2025
5b8b400
git commit -m "Code-lab-web"
Sep 5, 2025
9a38458
git commit -m "Code-lab-web"
Sep 5, 2025
7fc58de
git commit -m "Code-lab-web"
Sep 5, 2025
24f82d1
git commit -m "Code-lab-web"
Sep 5, 2025
b82acaf
git commit -m "Code-lab-web"
Sep 5, 2025
1fb7649
git commit -m "Code-lab-web"
Sep 17, 2025
43f8e00
git commit -m "Code-lab-web"
Sep 17, 2025
c4c588a
git commit -m "Code-lab-web"
Sep 17, 2025
e9e5daf
git commit -m "Code-lab-web"
Sep 23, 2025
ac4be04
git commit -m "Code-lab-web"
Sep 23, 2025
d504be6
git commit -m "Code-lab-web"
Sep 24, 2025
7924060
git commit -m "Code-lab-web"
Sep 24, 2025
feb45c1
git commit -m "Code-lab-web"
Sep 24, 2025
aa6421c
git commit -m "Code-lab-web"
Sep 25, 2025
669decb
git commit -m "Code-lab-web"
Sep 25, 2025
69277d7
git commit -m "Code-lab-web"
Sep 25, 2025
d906cfd
git commit -m "Code-lab-web"
Sep 26, 2025
d23cdba
git commit -m "Code-lab-web"
Sep 29, 2025
6e29b42
git commit -m "Code-lab-web"
Oct 2, 2025
ff5bae0
git commit -m "Code-lab-web"
Oct 2, 2025
ecf4799
git commit -m "Code-lab-web"
Oct 2, 2025
b41442a
git commit -m "Code-lab-web"
Oct 6, 2025
66322e7
git commit -m "Code-lab-web"
Oct 6, 2025
701ee76
git commit -m "Code-lab-web"
Oct 6, 2025
718265a
git c
Oct 7, 2025
2f4590f
git commit -m "Code-lab-web"
Code-lab-web Oct 7, 2025
96e2792
git commit -m "Code-lab-web"
Oct 7, 2025
d3dd891
git commit -m "Code-lab-web"
Code-lab-web Oct 7, 2025
175dac9
git commit -m "Code-lab-web"
Code-lab-web Oct 7, 2025
0eda64f
git commit -m "Code-lab-web"
Code-lab-web Oct 7, 2025
fc0282b
git commit -m "Code-lab-web"
Oct 7, 2025
cd8399a
git commit -m "Code-lab-web"
Code-lab-web Oct 7, 2025
2d35cbe
git commit -m "Code-lab-web"
Oct 8, 2025
24cf82e
git commit -m "Code-lab-web"
Code-lab-web Oct 8, 2025
da33e21
Merge remote-tracking branch 'refs/remotes/origin/master'
Code-lab-web Oct 8, 2025
14119ec
git commit -m "Code-lab-web"
Code-lab-web Oct 8, 2025
18cf982
git commit -m "Code-lab-web"
Code-lab-web Oct 9, 2025
2e0ee2d
git commit -m "Code-lab-web"
Code-lab-web Oct 9, 2025
792439d
git commit -m "Code-lab-web"
Code-lab-web Oct 10, 2025
3c88573
git commit -m "Code-lab-web"
Code-lab-web Oct 20, 2025
fdb153c
git commit -m "Code-lab-web"
Code-lab-web Oct 28, 2025
7ce8e8f
git commit -m "Code-lab-web"
Code-lab-web Oct 28, 2025
79c1da9
git commit -m "Code-lab-web"
Code-lab-web Oct 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions ## GitHub Copilot Chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## GitHub Copilot Chat

- Extension Version: 0.23.2 (prod)
- VS Code: vscode/1.96.4
- OS: Linux

## Network

User Settings:
```json
"github.copilot.advanced.debug.useElectronFetcher": true,
"github.copilot.advanced.debug.useNodeFetcher": false,
"github.copilot.advanced.debug.useNodeFetchFetcher": true
```

Connecting to https://api.github.com:
- DNS ipv4 Lookup: timed out after 10 seconds
- DNS ipv6 Lookup: Error (8 ms): getaddrinfo ENOTFOUND api.github.com
- Proxy URL: None (2 ms)
- Electron fetch (configured): timed out after 10 seconds
- Node.js https: timed out after 10 seconds
- Node.js fetch: timed out after 10 seconds
- Helix fetch: timed out after 10 seconds

Connecting to https://api.individual.githubcopilot.com/_ping:
- DNS ipv4 Lookup: timed out after 10 seconds
- DNS ipv6 Lookup: timed out after 10 seconds
- Proxy URL: None (16 ms)
- Electron fetch (configured): timed out after 10 seconds
- Node.js https: timed out after 10 seconds
- Node.js fetch: timed out after 10 seconds
- Helix fetch: timed out after 10 seconds

## Documentation

In corporate networks: [Troubleshooting firewall settings for GitHub Copilot](https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-firewall-settings-for-github-copilot).
10 changes: 10 additions & 0 deletions .autorestic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

version: 2
locations:
home:
from: /home/user
to: local_backup
backends:
local_backup:
type: local
path: /home/user/autorestic_backup
5 changes: 5 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [...],
"plugins": [...]
}
{ "extends": "../../.babelrc" }
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 0.25%
not dead
10 changes: 10 additions & 0 deletions .codesandbox/backend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
API_="my secret api key from.env"
DATABASE_SE="super secret"

MONGO_URL mongodb+srv://<TechnigoTeam>:<g6seF0zQ7M6MaWxn>@cluster0.a9ylqls.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0

Valid secret
a-string-secret-at-least-256-bits-long

FACEBOOK_CLIENT_ID=__INSERT_CLIENT_ID_HERE__
FACEBOOK_CLIENT_SECRET=__INSERT_CLIENT_SECRET_HERE__
84 changes: 84 additions & 0 deletions .codesandbox/backend/README.md/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Express API Starter Project

This project includes the packages and babel setup for an express server, and is just meant to make things a little simpler to get up and running with.

## Getting started

Install dependencies with `npm install`, then start the server by running `npm run dev`

## View it live

Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.

MongoDB Stress Test
MPK version
Running

>
c
d
M
o
n
g
o
D
B
S
t
r
e
s
s
T
e
s
t
&gt; python write_pbs.py --nclients 192 --host 'myhost.domain.com' --port 27018 $> qsub run.pbs

Dang version
Files:
w.py: Main program
w_run.pbs: PBS script
Example of running w.py

# Pick a time 100 seconds in the future
future=`python -c "import time; print(int(time.time()) + 100)"`
# Run 1 client at that time
./w.py --host=128.55.57.13 --ndocs=100 --when=$future
Util files
sharded-mongo : Run simple localhost setup with 2 shards

Password based authentication
Client-Server program which will facilitate a client to register itself to the server. A server should keep a table of user-hash(password) entry for each user.

This program registers user with username, password and stores password hash in dictonary. Also, when a user tries to login , password validation occurs.

Python,Socket programming

IMPLEMENTATION (python3)
SERVER : socket with multithreading CLIENT : socket HASH : SHA256 ( using pythons hashlib)

INPUT (client side)
1. Username
2. Password
OUPUT
1. Registeration Successful : new user
2. Connection Successful : password correct
3. Login Failed : password incorrect

Hash table : Contains User and Password. It is implemented using python Dictionary data structure

React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

@vitejs/plugin-react uses Babel for Fast Refresh
@vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.

Install dependencies with npm install, then start the server by running npm run dev
31 changes: 31 additions & 0 deletions .codesandbox/backend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

{
"name": "express-api-starter",
"version": "1.0.0",
"description": "Starter project to get and running with express quickly",
"scripts": {
"start": "babel-node server.js",
"dev": "nodemon server.js --exec babel-node",
"test": "jest"
},
"author": "Special Garden Group",
"licence": "ISC OR GPL-3.0",
"dependencies": {
"express": "^5.1.0",
"@fontsource/roboto": "^5.2.6",
"@mui/icons-material": "^7.2.0",
"@mui/material": "^7.2.0",
"@mui/styled-engine-sc": "^7.2.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"styled-components": "^6.1.19",
"@babel/core": "^7.17.9",
"@babel/node": "^7.16.8",
"@babel/preset-env": "^7.16.11",
"nodemon": "^3.0.1",
"cors": "^2.8.5",
"dotenv": "^16.5.0",
"mongodb": "^6.16.0",
"mongoose": "^8.15.1"
}
}
148 changes: 148 additions & 0 deletions .codesandbox/backend/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
import express from 'express'
import bodyParser from 'body-parser'
import cors from 'cors'
import crypto from 'crypto'
import mongoose from 'mongoose'
import bcrypt from 'bcrypt-nodejs'
import dotenv from 'dotenv'

dotenv.config()

const mongoUrl =process.env_MONGO_URL II "mongodb://localhost/auth",
mongoose.connect(mongoUrl, { useNewUrlParser: true, useundefinedtopology: true})
mongoose.Promise = Promise

const { Schema, model } = mongoose
const userSchema = new Schema({

const User = mongoose.model('User', {
name: {
type: String,
unique: true
},
password:{
type:String,
required:true
},
accessToken:{
type:String,
default: () => crypto.randomBytes(128)toString('hex')
}
});
const User = model("User", userSchema)

// Example
// POST Request
const request = {name: "Bob", password: "foobar};
// DB Entry
const dbEntry = {name :"Bob, password:"5abbc32983def"}
bcrypt.compareSync(request.password, dbEntry.password);
// One-way encryption
const user = new User({name:"Bob", password:bcrypt.hashSync("foobar")});
user.save();
// Defines the port the app will run on. Defaults to 8080, but can be overritten when starting the server. For example:
//
// PORT-9000 npm start
const port = process.env.PORT II 8080
const app = express()
const authenticateUser = async (req, res, next) => {
const user = await User.findOne({accesToken: req.header('Authorization')});
if(user){
req.user = user;
next();
{else{
res.status(401).json({loggedOut:true});
}}
}
}

// Add middlewares to enable cors and json body parsing
app.use(cors())
app.use(express.json());
app.use(bodyParser.json())

// Start defining your routes here
app.get('/', (req, res) => {
res.send('Hello Member')
app.post('/tweets' authenticateUser);
app.post('/tweets', async (req,res) =>{
// This will only happen if the next() function is called from middleware!
// now we can access the req.user object from the middleware
})

}
})
})

// Start defining your routes here
app.get('/,(req, res) => {
res.send('Hello world')
})
app.post('/sessions' async (req res) => {
const user = await User.findOne({name: req.body.name});
if(user && bcrypt.compareSync(req.body.password, user.password)){
// Success
res.json({userId: user._id, accessToken}};
}else{
// Failure
// a.User does not exist
// b. Encrypted password does not march
res.json({notFound: true});
}
}
});
app.post("/users", (req, res) => {
try {
const { name, email, password } = req.body
const salt = bcrypt.genSaltSync()
const user = new User({ name, email, password: bcrypt.hashSync(password, salt) })
user.save()
res.status(201).json({
success: true,
message: "User created",
id: user._id,
accessToken: user.accessToken,
})
} catch (error) {
res.status(400).json({
success: false,
message: "Could not create user",
errors: error
})
}
})

app.get("/secrets", authenticateUser)
app.get("/secrets", (req, res) => {
res.json({
secret: "This is secret"
app.get('/secrets', (req, res) =>{
res.jsons({secret: 'This is a super secret message'})
});
}
app.post('/sessions' async (req, res) => {
const user = await User.findOne({email: req.body.email});
if (user && bcrypt.compareSync(req.body.password. user.password)){
res.json({userId: user_Id, assessToken: user.accessToken});
}else{
res.json({notFound: true});

// Add middlewares to enable cors and json body parsing
app.use(cors())
app.use(bodyParser.json())
//Start defing your routes here
app.get('/',(req, res) => {
//fetch('...,{headers:{Authorization:
'my secret apt key'}}}
res.send{process.env.API_KEY}})
}



// Start the server
})
app.listen(port, () => {
console.log('Server running on http://localhost:${port}')
})
console.log(bcrypt.hashSync("foobar"));
})
23 changes: 23 additions & 0 deletions .codesandbox/backend/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"command": "pnpm install",
"name": "Installing Dependencies"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "pnpm start",
"runAtStart": false
},
"dev": {
"name": "dev",
"command": "pnpm dev",
"runAtStart": true
}
}
}
Loading