Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e48fe7a
feat: initialized the routes and controllers
learner-enthusiast Apr 26, 2024
8e7f95d
fix: remove the yarn.lock file
learner-enthusiast Apr 26, 2024
37d386c
feat: added some expnese and expenseGroupcontrollers
learner-enthusiast Apr 26, 2024
e10be84
feat: added some more controllers
learner-enthusiast Apr 27, 2024
25b8e40
feat: added the helper functions
learner-enthusiast Apr 27, 2024
d2f4658
feat: added more expenseGroup controller
learner-enthusiast Apr 27, 2024
c09da4d
feat: wrote pseudo code for expense and expenseGroupcontroller withou…
learner-enthusiast Apr 28, 2024
cf6fbfb
feat: tested some of the routes
learner-enthusiast Apr 28, 2024
26e6c32
feat: tested more routes and refactored the helper functions
learner-enthusiast Apr 29, 2024
4f9eb46
feat: wrote all the routes some testing left
learner-enthusiast Apr 29, 2024
c775260
feat: validated all the routes jsut few aggregations left
learner-enthusiast Apr 30, 2024
fafa7e4
feat: fiew aggregation validations left
learner-enthusiast Apr 30, 2024
2b40f79
feat: testing of all the routes validation complete
learner-enthusiast May 1, 2024
da7cc40
fix: camelcasing of routes and file names undone
learner-enthusiast May 2, 2024
f86bbad
fix: add yarn.lock
learner-enthusiast May 2, 2024
711f821
fix: added some minor tweaks
learner-enthusiast May 2, 2024
d3b6b15
fix: typos and errors
learner-enthusiast May 2, 2024
679d9f5
fix: fix yarn.lock
learner-enthusiast May 2, 2024
4e7eb43
fix: reviews by shubham waje
learner-enthusiast May 5, 2024
2dbe279
fix: reviews by shubham waje
learner-enthusiast May 5, 2024
e942344
fix: test commit
learner-enthusiast May 10, 2024
9cff4cf
fix: removed the comments of routes
learner-enthusiast May 18, 2024
7fff02c
fix: removed the comments of constants
learner-enthusiast May 18, 2024
7c0f599
feat: add some user checking
learner-enthusiast May 30, 2024
77aaeef
fix: yarn.lock
learner-enthusiast May 30, 2024
d6fe2e4
fix: server crashing due to uncaught error handling
learner-enthusiast May 30, 2024
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: 6 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ import redirectRouter from "./routes/kitchen-sink/redirect.routes.js";
import requestinspectionRouter from "./routes/kitchen-sink/requestinspection.routes.js";
import responseinspectionRouter from "./routes/kitchen-sink/responseinspection.routes.js";
import statuscodeRouter from "./routes/kitchen-sink/statuscode.routes.js";
import expenseGroupRouter from "./routes/apps/expense-split-app/expensegroup.routes.js";
import expenseRouter from "./routes/apps/expense-split-app/expense.routes.js";

// * Seeding handlers
import { avoidInProduction } from "./middlewares/auth.middlewares.js";
Expand Down Expand Up @@ -189,6 +191,10 @@ app.use("/api/v1/social-media/comments", socialCommentRouter);
app.use("/api/v1/chat-app/chats", chatRouter);
app.use("/api/v1/chat-app/messages", messageRouter);

//* expense Split-app api's
app.use("/api/v1/expensegroup", expenseGroupRouter);
app.use("/api/v1/expense", expenseRouter);

app.use("/api/v1/todos", todoRouter);

// * Kitchen sink apis
Expand Down
40 changes: 40 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,43 @@ export const ChatEventEnum = Object.freeze({
});

export const AvailableChatEvents = Object.values(ChatEventEnum);

/**
* @type {{FOOD_AND_DRINK: "Food & drink",SHOPPING: "shopping",ENTERTAINMENT: "entertainment",HOME: "Home",TRANSPORTATION: "Transportation",OTHERS: "Others", } as const}
*/
export const ExpenseTypes = {
FOOD_AND_DRINK: "Food & drink",
SHOPPING: "shopping",
ENTERTAINMENT: "entertainment",
HOME: "Home",
TRANSPORTATION: "Transportation",
OTHERS: "Others",
};

export const AvailableExpenseTypes = Object.values(ExpenseTypes);

/**
* @type {{HOME: "Home", TRIP: "Trip",OFFICE: "Office",SPORTS: "Sports",OTHERS: "Others",} as const}
*/

export const ExpenseGroupTypes = {
HOME: "Home",
TRIP: "Trip",
OFFICE: "Office",
SPORTS: "Sports",
OTHERS: "Others",
};

export const AvailableExpenseGroupTypes = Object.values(ExpenseGroupTypes);

/**
* @type {{CASH: "Cash", UPI: "Upi",CARD: "Card"} as const}
*/

export const PaymentMethods = {
CASH: "Cash",
UPI: "Upi",
CARD: "Card",
};

export const AvailablePaymentMethods = Object.values(PaymentMethods);
Loading