Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
5157ac2
git commit -m "Code-lab-web"
Code-lab-web Jun 3, 2025
9cda682
Add redirects for various pages and resources
Code-lab-web Jun 10, 2025
93c2930
git commit -m "Code-lab-web"
Jun 23, 2025
28cc581
git commit-m "Code-lab-web"
Code-lab-web Jun 30, 2025
d9fa1e7
Add Roboto font and Material Icons to style.css
Code-lab-web Jun 30, 2025
462f253
git commit -m "Code-lab-web"
Code-lab-web Jul 11, 2025
62751eb
git commit -m "Code-lab-web"
Code-lab-web Jul 16, 2025
fd613b9
git commit -m "Code-lab-web"
Code-lab-web Jul 21, 2025
7bf4efc
git commit -m "Code-lab-web"
Jul 21, 2025
d9ab7e9
git commit -m "Code-lab-web"
Jul 21, 2025
374a8b3
git commit -m "Code-lab-web"
Jul 21, 2025
e42d0ce
git commit -m "Code-lab-web"
Jul 22, 2025
3787785
git commit -m "Code-lab-web"
Jul 22, 2025
404c31b
git commit -m "Code-lab-web"
Jul 22, 2025
b1baa02
git commit -m "Code-lab-web"
Jul 22, 2025
94432fb
git commit -m "Code-lab-web"
Jul 22, 2025
e2195d3
git commit -m "Code-lab-web"
Jul 22, 2025
03ee618
git commit -m "Code-lab-web"
Jul 22, 2025
b830ba6
git commit -m "Code-lab-web"
Jul 22, 2025
a03debf
git commit -m "Code-lab-web"
Aug 6, 2025
7f83fd4
git coomit -m "Code-lab-web"
Aug 7, 2025
96c3b26
git commit -m "Code-lab-web"
Aug 8, 2025
d38e6c0
git commit -m "Code-lab-web"
Aug 11, 2025
154c651
git commit -m "Code-lab-web"
Aug 11, 2025
6fcd438
git commit -m "Code-lab-web"
Aug 11, 2025
246edc4
git commit -m "Code-lab-web"
Aug 11, 2025
f59e215
git commit -m "Code-lab-web"
Aug 12, 2025
4de1c7a
git commit -m "Code-lab-web"
Aug 13, 2025
c336543
git commit-m "Code-lab-web"
Aug 14, 2025
cf23aa8
git commit -m "Code-lab-web"
Aug 14, 2025
b753fb9
git commit -m "Code-lab-web"
Aug 14, 2025
9661941
git commit -m "Code-lab-web"
Aug 19, 2025
4a6eea1
git commit -m "Code-lab-web"
Aug 19, 2025
ad23076
git commit -m "Code-lab-web"
Aug 21, 2025
e079aad
git commit -m "Code-lab-web"
Aug 22, 2025
39c708e
git commit -m
Aug 26, 2025
2177964
git commit -m "Code-lab-web"
Aug 27, 2025
5434299
git commit -m "Code-lab-web"
Aug 27, 2025
fa7689a
git commit -m "Code-lab-web"
Aug 27, 2025
8482dd1
git commit -m "Code-lab-web"
Aug 27, 2025
92d04cc
git commit -m "Code-lab-lab"
Aug 28, 2025
5f3dbf9
git commit "Code-lab-web"
Aug 29, 2025
d7814c9
git commit -m "Code-lab-web"
Aug 29, 2025
e5b925a
git commit -m "Code-lab-web"
Aug 29, 2025
7eb345a
git commit -m "Code-lab-web"
Sep 1, 2025
4932e74
git commit -m "Code-lab-web"
Sep 2, 2025
fb0db04
git commit -m "Code-lab-web"
Sep 2, 2025
0d7cb47
git commit -m "Code-lab-web"
Sep 2, 2025
809e953
git commit -m "Code-lab-web"
Sep 2, 2025
640e587
git commit -m "Code-lab-web"
Sep 4, 2025
3db7fa6
git commit -m "Code-lab-web"
Sep 4, 2025
6c00655
git commit -m "Code-lab-web"
Sep 5, 2025
7515995
git commit -m "Code-lab-web"
Sep 5, 2025
4529d1a
git commit -m "Code-lab-web"
Sep 5, 2025
077b28e
git commit -m "Code-lab-web"
Sep 5, 2025
a15a0b3
git commit -m "Code-lab-web"
Sep 5, 2025
80fe306
git commit -m "Code-lab-web"
Sep 5, 2025
7c88485
git commit -m "Code-lab-web"
Sep 5, 2025
09aad78
git commit -m "Code-lab-web"
Sep 5, 2025
e854544
git commit -m "Code-lab-web"
Sep 8, 2025
5d3e4ff
git commit -m "Code-lab-web"
Sep 10, 2025
4e8bc9f
git commit -m "Code-lab-web"
Sep 10, 2025
db229f3
git commit -m "Code-lab-web"
Sep 10, 2025
abef1dc
git commit -m "Code-lab-web"
Sep 12, 2025
d979d0e
git commit -m "Code-lab-web"
Sep 12, 2025
33f658a
git commit -m "Code-lab-web"
Sep 12, 2025
fdc1490
git commit -m "Code-lab-web"
Sep 18, 2025
bceee70
git commit -m "Code-lab-web"
Sep 18, 2025
cc29961
git commit -m "Code-lab-web"
Sep 18, 2025
11beecc
git commit -m "Code-lab-web"
Sep 23, 2025
0c584c3
git commit -m "Code-lab-web"
Sep 23, 2025
68285f8
git -m "Code-lab-web"
Sep 24, 2025
8bba475
git commit -m "Code-lab-web"
Sep 25, 2025
e0b62cd
git commit -m "Code-lab-web"
Sep 25, 2025
3b797c9
git commit -m "Code-lab-web"
Sep 25, 2025
afe3cf2
git commit -m "Code-lab-web"
Sep 26, 2025
a048b58
git commit -m "Code-lab-web"
Sep 30, 2025
44bbee1
git commit -m "Code-lab-web"
Sep 30, 2025
c765202
git commit -m "Code-lab-web"
Sep 30, 2025
25f8a87
git commit -m "Code-lab-web"
Oct 2, 2025
11c110d
git commit -m "Code-lab-web"
Oct 2, 2025
6517f4c
git commit -m "Code-lab-web"
Oct 2, 2025
8f37039
git commit -m "Code-lab-web"
Oct 6, 2025
d9027b0
git commit -m "Code-lab-web"
Oct 6, 2025
cbe0bf7
git commit -m "Code-lab-web"
Oct 6, 2025
f2bba5d
git commit -m "Code-lab-web"
Oct 7, 2025
2cd0016
git commit -m "Code-lab-web"
Oct 7, 2025
e0b862c
git commit -m "Code-lab-web"
Oct 7, 2025
3d62ade
git commit -m "Code-lab-web"
Oct 8, 2025
3974674
git commit -m "Code-lab-web"
Oct 8, 2025
7111732
git commit -m "Code-lab-web"
Oct 8, 2025
766e8df
git commit -m "Code-lab-web"
Oct 9, 2025
10f4b13
git commit -m "Code-lab-web"
Oct 14, 2025
bcfbedf
git commit -m "Code-lab-web"
Oct 14, 2025
806bc03
git commit -m "Code-lab-web"
Oct 14, 2025
76e7ec4
git commit -m "Code-lab-web"
Oct 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 10 additions & 0 deletions ..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__
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
File renamed without changes.
11 changes: 11 additions & 0 deletions .codesandbox/backend/db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

var sqlite3 = require('sqlite3');

var db = new sqlite3.Database('./var/db/todos.db', (err) => {
if (err) {
console.error(err.message);
}
console.log('Connected to the todos database.');
});

module.exports = db;
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"));
})
7 changes: 7 additions & 0 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.env
..env
# Local Netlify folder
.netlify
3 changes: 3 additions & 0 deletions .idx/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presents" : ["@babel/present-env"]
}
59 changes: 59 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# To learn more about how to use Nix to configure your environment
# see: https://firebase.google.com/docs/studio/customize-workspace
{ pkgs, ... }: {
# Which nixpkgs channel to use.
channel = "stable-24.05"; # or "unstable"

# Use https://search.nixos.org/packages to find packages
packages = [
# pkgs.sudo
# pkgs.go
# pkgs.python311
# pkgs.python311Packages.pip
# pkgs.nodejs_20
# pkgs.nodePackages.nodemon
# pkgs.python312Packages.pip
# pkgs.busybox
# pkgs.autorestic
];

# Sets environment variables in the workspace
env = {};
idx = {
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
extensions = [
# "vscodevim.vim"
];

# Enable previews
previews = {
enable = true;
previews = {
# web = {
# # Example: run "npm run dev" with PORT set to IDX's defined port for previews,
# # and show it in IDX's web preview panel
# command = ["npm" "run" "dev"];
# manager = "web";
# env = {
# # Environment variables to set for your server
# PORT = "$PORT";
# };
# };
};
};

# Workspace lifecycle hooks
workspace = {
# Runs when a workspace is first created
onCreate = {
# Example: install JS dependencies from NPM
# npm-install = "npm install";
};
# Runs when the workspace is (re)started
onStart = {
# Example: start a background task to watch and re-build backend code
# watch-backend = "npm run watch-backend";
};
};
};
}
20 changes: 20 additions & 0 deletions .idx/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "specialgardengroup-api",
"version" "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"start": "babel-node server.js",
"dev": "nodemon server.js --exec babel-node},"
"test": "echo\ "Error: no test specified\"&& exit "install": "
},
"author": "Code-lab-web",
"licence": "ISC",
"dependencies": {
"@babel/core": "^7.8.3",
"@babel/node" "^7.8.3",
"@babel/present-env":"^7.8.3",
"nodemon": "^2.0.2"
}
}
}
6 changes: 6 additions & 0 deletions .vscode/$ PROFILE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo "function yarn { corepack yarn `$args }" >> $PROFILE
echo "function yarnpkg { corepack yarnpkg `$args }" >> $PROFILE
echo "function pnpm { corepack pnpm `$args }" >> $PROFILE
echo "function pnpx { corepack pnpx `$args }" >> $PROFILE
echo "function npm { corepack npm `$args }" >> $PROFILE
echo "function npx { corepack npx `$args }" >> $PROFILE
13 changes: 13 additions & 0 deletions .vscode/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import './App.css';
import SideBar from ".SideBar";
import
function App () {
return (
<div className ="flex text-center text-green-500 font-bold ">
Hallo custumer/member
</p>
</div>

);
}
export default App;
37 changes: 37 additions & 0 deletions .vscode/SideBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { BsPlus, BsFillLIghtningFill, BsGearFill } from react-icons/fa';
import { FaFire, FaPoo} from 'react-icons/fa';
const SideBar = () => {
return {
<div className="fixed top-0 left-0 h-screen w-16 m-0">
flex flex-col">
bg-gray-900 text-white shadow-lg">
<i>A</i>
<i>B</i>
<i>C</i>
<i<D</i>
<i>E</i>
<SideBarIcon icon ={<FaFire size = "28"/} />
<SideBarIcon = {<BsPlus size = "32"/>}}
<SideBarIcon = <BsFillLightningFillsize="20"/}/>
<SideBarIcon = <FaPoo size = "20" />}/>
</div>
};
};
const SideBarIcon = ({icon,text='tooltip'})=> ();
<div className = "sidebar-icon group">
{icon}
<span class = "sidebar-tooltip group-hover:scale-100">
{text}
</span>
</div>
};

constSideBar =()=> {
return(
<div className= "fixed" top-0 left-0h-screen w-16 m-0
flex flex-col
bg-gray-100 text-gray-900
dark:bg-gray-900 dark:text-white></div>
)
}
export default SideBar
11 changes: 11 additions & 0 deletions .vscode/craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
style: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],

},
},
}
21 changes: 21 additions & 0 deletions .vscode/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components{
@ apply relative flex items-center justify-center
} h-12 w-12 mt-2 mb-2 mx-auto;
bg-gray-800 text-green-500
hover; bg -green-600; hover:text-white;
}
rounded-3xl hover:rounded-xl;
transition-allduration -300 ease-linear;
cursor-pointer;

.sidebar-tooltip {
@absolute w-auto p-2 m-2 min-w max left-14
rounded-md shadow-md
text-white bg-gray-900
text-xs font-bold
transition-all duration-100 scale-0 orgin-left}

}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"IDX.aI.enableInlineCompletion": true,
"IDX.aI.enableCodebaseIndexing": true
}
"github.gitAuthentication": true
}
Loading