Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions backend/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Application } from "https://deno.land/x/[email protected]/mod.ts";
import { config } from "https://deno.land/x/dotenv/mod.ts";
// import { config } from "https://deno.land/x/dotenv/mod.ts";
import { oakCors } from "https://deno.land/x/cors/mod.ts";
import { fetchAirtableData } from "./util/AirtablUtil.ts"

// Create a new Oak application
const app = new Application();
const PORT = 8000;
// const PORT = Deno.env.get("PORT");

// Enable CORS for all routes
app.use(oakCors());
Expand All @@ -24,7 +25,8 @@ app.use(async (ctx) => {
const filterByFormula = `DATETIME_FORMAT({Loged in time}, 'YYYY-MM-DD') = '${formattedDate}'`;

// Fetch records from Airtable
const records = await fetchAirtableData(config().AIRTABLE_API_KEY,config().AIRTABLE_BASE_ID,config().AIRTABLE_TABLE_NAME,filterByFormula);
// const records = await fetchAirtableData(config().AIRTABLE_API_KEY,config().AIRTABLE_BASE_ID,config().AIRTABLE_TABLE_NAME,filterByFormula);
const records = await fetchAirtableData(Deno.env.get("AIRTABLE_API_KEY"),Deno.env.get("AIRTABLE_BASE_ID"),Deno.env.get("AIRTABLE_TABLE_NAME"),filterByFormula);

ctx.response.body = records;

Expand Down
164 changes: 164 additions & 0 deletions et --hard HEAD
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
commit c541eae83fff487eb22f226c0349dcf305faa8d8 (HEAD -> feature/view-mentor-mentee-on-tv, origin/feature/view-mentor-mentee-on-tv)
Author: Imad Ibrahim <[email protected]>
Date: Fri Nov 17 07:00:02 2023 +0530

Added welcome page

commit daf7b5ac0b79ad7fea01f359235525f0adb0ceb4
Author: Imad Ibrahim <[email protected]>
Date: Fri Nov 17 03:41:41 2023 +0530

Fix crash when name field is deleted in Airtable

commit c95d7b74d80e87bc05aceeb314d4bbd5cbd942e5
Author: Imad Ibrahim <[email protected]>
Date: Thu Nov 16 20:43:18 2023 +0530

truncated some texts

commit 7630607d35a639285786f7475fe0ea4a6f34ae5f
Author: Imad Ibrahim <[email protected]>
Date: Wed Nov 15 22:05:40 2023 +0530

added some changes in frontend

commit 10466f2f14d785ab70f213eb0b947a8ca87acc2f
Author: Imad Ibrahim <[email protected]>
Date: Wed Nov 15 13:38:49 2023 +0530

changed images in public_url

commit 757a2173bb14ef4277b63c8176c1a051ae6ef518
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 14 22:07:50 2023 +0530

added gh pages

commit d049d689ca3e362e14bf71ff02604f25d1008adb
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 14 21:39:48 2023 +0530

added deno API to react app

commit 63aa3e577bbca60e464e080ec910e5f1bdb860d5
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 14 19:46:23 2023 +0530

changed port

commit 9590de29782264f11a5a03a27aba386c7a42915d
Merge: 2012c03 1e98ee4
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 14 18:48:01 2023 +0530

Merge branch 'feature/view-mentor-mentee-on-tv' of https://github.com/tinkerhub/tinkerspace_digital into feature/view-mentor-mentee-on-tv

commit 2012c03b3d8acfadbf7528525a6bee6ec5c7f128
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 14 18:46:16 2023 +0530

changed env to deno env

commit 1e98ee452f99e880bb7181597c4e5d0abacc6c74
Author: Imad Ibrahim <[email protected]>
Date: Wed Nov 8 19:26:30 2023 +0530

Update README.md

commit cbf4e795e1f63cca3c29a9ff87ed4b99d25f41ad
Merge: 0583585 558ef5a
Author: Imad Ibrahim <[email protected]>
Date: Wed Nov 8 19:17:05 2023 +0530

Merge branch 'feature/view-mentor-mentee-on-tv' of https://github.com/tinkerhub/tinkerspace_digital into feature/view-mentor-mentee-on-tv

commit 0583585caf99468026f008146f9eaeded0ad1db5
Author: Imad Ibrahim <[email protected]>
Date: Wed Nov 8 19:13:10 2023 +0530

updated readme file and server.ts file

commit 558ef5a6b46fcf177f16bb7a7f837dba683316c2
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 7 02:55:12 2023 +0530

corrected git add frontend/src/App.js

commit 3a1cb062029d982b6b87a91d0b43b9872398ab34
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 7 02:52:39 2023 +0530

Issue: Timezone Mismatch in Date Filtering

commit 044a6ae8a6ab349027f1916431da1722f4937e57
Author: Imad Ibrahim <[email protected]>
Date: Tue Nov 7 02:38:13 2023 +0530

changed filterByFormula from dynamic to static

commit 5570b7efa9b2b4a3b8b534fc6d480db1fd0e8486
Author: Imad Ibrahim <[email protected]>
Date: Fri Nov 3 22:41:38 2023 +0530

Updated server.ts file with dynamic date format

commit fe60da0148fc2c2c7cfa7c39cc2e94b8aefca4f6
Merge: cc32c5e 42370ed
Author: Muhammad Swalah A A <[email protected]>
Date: Fri Nov 3 18:17:04 2023 +0530

Merge branch 'develop' into feature/view-mentor-mentee-on-tv

commit cc32c5e0d2807f0cfeccdd3adad77a8be2f98ebc
Author: Imad Ibrahim <[email protected]>
Date: Fri Nov 3 02:56:02 2023 +0530

Updated React components and README

commit 4bcf5e5935dcf27e2eeed4cc2c8c85a824c03c0e
Author: Imad Ibrahim <[email protected]>
Date: Fri Nov 3 02:55:14 2023 +0530

Updated React components and README

commit 19d7ac7f2229a190c0c3f5c0227b79f5effcf305
Author: Imad Ibrahim <[email protected]>
Date: Fri Nov 3 02:54:33 2023 +0530

changed project name in README

commit 69d114754bf1d42d63ee5e62860ef569eb4f9103
Author: Imad Ibrahim <[email protected]>
Date: Fri Nov 3 02:48:33 2023 +0530

Updated React components and README

commit b1c8c35739a3301fc9ad8f1cb8bc4651c51d9894
Author: Imad Ibrahim <[email protected]>
Date: Wed Nov 1 22:35:07 2023 +0530

updated filterByFormula

commit b4c1c89c1e6582d3f8a325d42f9a03edb1d1278e
Author: Muhammad Swalah A A <[email protected]>
Date: Wed Nov 1 21:47:54 2023 +0530

feat: implement airtable api function with filterByFormula option

commit 31ed7a16de57ebf88d4b46a72a7e6778cd444198
Author: Imad Ibrahim <[email protected]>
Date: Wed Nov 1 15:15:10 2023 +0530

wip: initial commit

commit 42370ed1f421bc3f583a564a76faf3b024524a1b (origin/main, origin/develop)
Author: Kuriyaappi <[email protected]>
Date: Wed Oct 25 16:02:43 2023 +0530

Initial commit

commit f54cf557cb73330381ef36fc8834d9c4ed55b676
Author: Imad Ibrahim <[email protected]>
Date: Tue Oct 10 15:09:40 2023 +0530

Initialize project using Create React App
Empty file added frontend/index.html
Empty file.
Loading