Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulhaque committed Apr 25, 2020
1 parent 63a4764 commit 06c7230
Show file tree
Hide file tree
Showing 40 changed files with 8,082 additions and 103 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_API_HOST=http://localhost
REACT_APP_APP_NAME="Expense Tracker"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
328 changes: 305 additions & 23 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,25 @@
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"axios": "^0.19.2",
"classnames": "^2.2.6",
"dayjs": "^1.8.25",
"i18next": "^19.4.3",
"primeflex": "^1.0.0",
"primeicons": "^2.0.0",
"primereact": "^4.2.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1"
"react-helmet": "^6.0.0",
"react-hook-form": "^5.5.3",
"react-i18next": "^11.3.5",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1",
"react-tracked": "^1.3.0",
"react-transition-group": "^4.3.0",
"sweetalert2": "^9.10.12",
"sweetalert2-react-content": "^3.0.1",
"yup": "^0.28.4"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Binary file added public/assets/layout/images/dollar-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/layout/images/dollar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/layout/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/layout/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Expense Tracker</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
14 changes: 2 additions & 12 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Expense Tracker",
"name": "Expense Tracker",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
Expand Down
40 changes: 40 additions & 0 deletions src/API.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

export const host = process.env.REACT_APP_API_HOST;

export const authApiEndpoints = {
login: '/api/v1/auth/login',
refresh: '/api/v1/auth/refresh',
register: '/api/v1/auth/register',
logout: '/api/v1/auth/logout',
sendPin: '/api/v1/auth/send_code',
verifyMobile: '/api/v1/auth/mobile_verify',
};

export const userApiEndpoints = {
user: '/api/v1/user',
password: '/api/v1/user/password',
profile: '/api/v1/user/update',
self: '/api/v1/user/profile',
};

export const expenseApiEndpoints = {
expense: '/api/v1/expense',
expenseCategory: '/api/v1/expense/category',
summary: '/api/v1/expense/summary',
};

export const incomeApiEndpoints = {
income: '/api/v1/income',
incomeCategory: '/api/v1/income/category',
summary: '/api/v1/income/summary',
};

export const currencyApiEndpoints = {
currency: '/api/v1/currency',
};

export const reportApiEndpoints = {
monthlyExpenseSummary: '/api/v1/report/expense/months/summary',
monthlyIncomeSummary: '/api/v1/report/income/months/summary',
transaction: '/api/v1/report/transaction',
};
Loading

0 comments on commit 06c7230

Please sign in to comment.