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
File renamed without changes.
2 changes: 1 addition & 1 deletion backend/controllers/csvDownload.controller.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { db } = require('../../database.js');
const { db } = require('../config/database');

function getAllTasksWithSubjects() {
const query = `
Expand Down
16 changes: 10 additions & 6 deletions package.json → backend/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"name": "study-plan",
"name": "backend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "jest",
"start": "node server.js",
"test": "node --test"
"dev": "nodemon server.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"type": "commonjs",
"dependencies": {
"@google/genai": "^1.49.0",
"@google/genai": "^2.8.0",
"cors": "^2.8.6",
"dotenv": "^17.4.2",
"express": "^5.2.1",
"mongoose": "^9.6.3",
"sqlite3": "^6.0.1"
},
"engines": {
"node": ">=20.x"
"devDependencies": {
"jest": "^30.4.2",
"nodemon": "^3.1.14"
}
}
4 changes: 2 additions & 2 deletions server.js → backend/server.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require('dotenv').config();
const express = require('express');
const cors = require('cors');
const { db, initDb } = require('./database');
const { db, initDb } = require('./config/database');
const { GoogleGenAI } = require('@google/genai');
const path = require('path');
const csvDownloadRouter = require('./backend/routers/csvDownload.router.js');
const csvDownloadRouter = require('./routes/csvDownload.router.js');

const app = express();
app.use(cors());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
buildCalendarIcs,
formatIcsDate,
escapeIcsText,
} = require('../backend/controllers/csvDownload.controller.js');
} = require('../controllers/csvDownload.controller.js');

test('formatIcsDate returns UTC RFC5545 timestamp', () => {
assert.equal(
Expand Down
13 changes: 13 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "frontend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
8 changes: 4 additions & 4 deletions js/app.js → frontend/src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { store } from './store.js';
import { extractTasksFromText } from './utils/api.js';
import { initGlobalErrorBoundary } from './utils/errorBoundary.js';
import { analyzeWorkload } from './utils/scheduler.js';
import { Toast } from './utils/toast.js';
import { extractTasksFromText } from '../utils/api.js';
import { initGlobalErrorBoundary } from '../utils/errorBoundary.js';
import { analyzeWorkload } from '../utils/scheduler.js';
import { Toast } from '../utils/toast.js';

initGlobalErrorBoundary();

Expand Down
4 changes: 2 additions & 2 deletions js/store.js → frontend/src/js/store.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Toast } from './utils/toast.js';
import { triggerConfetti } from './utils/confetti.js';
import { Toast } from '../utils/toast.js';
import { triggerConfetti } from '../utils/confetti.js';

export const store = {
subjects: [],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading