Skip to content

In this project i have tried to combine the following things: (notes, finance, transaction, stocks). In this project user can see the graph of the stock like grow site(but in worse conditions). Along with this my main purpose here is that user can enter the buy or sell orders and see what would have happened if he have buyed or selled that stocks.

License

Notifications You must be signed in to change notification settings

danisherror/frontend_for_notes_expense_stocks

Repository files navigation

Folder Structure

frontend_for_notes_expense_stocks
├─]node_modules/ (ignored)
├─ public/
│  ├─ data.json
│  └─ favicon.ico
├─ src/
│  ├─ Auth/
│  │  └─ Auth.jsx
│  ├─ common/
│  │  └─ Loader/
│  │     └─ index.tsx
│  ├─ components/
│  │  ├─ Breadcrumbs/
│  │  │  └─ Breadcrumb.tsx
│  │  ├─ Charts/ (ignored)
│  │  ├─ Chat/ (ignored)
│  │  ├─ Checkboxes/ (ignored)
│  │  ├─ Dropdowns/
│  │  │  └─ DropdownDefault.tsx
│  │  ├─ Forms/
│  │  │  ├─ DatePicker/ (ignored)
│  │  │  ├─ SelectGroup/ (ignored)
│  │  │  └─ MultiSelect.tsx
│  │  ├─ Header/ (ignored)
│  │  ├─ Maps/ (ignored)
│  │  ├─ Sidebar/
│  │  │  ├─ index.tsx
│  │  │  └─ SidebarLinkGroup.tsx
│  │  ├─ Switchers/ (ignored)
│  │  ├─ Tables/ (ignored)
│  │  ├─ CardDataStats.tsx
│  │  ├─ ClickOutside.tsx
│  │  ├─ ModalSettings.tsx
│  │  ├─ PageTitle.tsx
│  │  └─ TableSettings.tsx
│  ├─ css/ (ignored)
│  ├─ Expenses/
│  │  ├─ Create_Expenses.jsx
│  │  ├─ Edit_Expenses.jsx
│  │  └─ Show_All_Expenses.jsx
│  ├─ fonts/(ignored)
│  ├─ hooks/
│  │  ├─ fireToast.tsx
│  │  ├─ useColorMode.tsx
│  │  └─ useLocalStorage.tsx
│  ├─ images/(ignored)
│  │  ├─ cards/ (ignored)
│  │  ├─ country/ (ignored)
│  │  ├─ cover/ (ignored)
│  │  ├─ icon/ (ignored)
│  │  ├─ logo/ (ignored)
│  │  ├─ product/ (ignored)
│  │  ├─ task/ (ignored)
│  │  ├─ user/ (ignored)
│  │  └─ favicon.ico
│  ├─ js/ (ignored)
│  ├─ layout/
│  │  └─ DefaultLayout.tsx
│  ├─ Notes/
│  │  ├─ Create_Notes.jsx
│  │  ├─ Edit_Notes.jsx
│  │  └─ Show_All_Notes.jsx
│  ├─ pages/
│  │  ├─ Authentication/
│  │  │  ├─ SignIn.tsx
│  │  │  └─ SignUp.tsx
│  │  ├─ Dashboard/
│  │  │  └─ ECommerce.tsx
│  │  ├─ Form/
│  │  │  ├─ FormElements.tsx
│  │  │  └─ FormLayout.tsx
│  │  ├─ UiElements/
│  │  │  ├─ Alerts.tsx
│  │  │  └─ Buttons.tsx
│  │  ├─ Calendar.tsx
│  │  ├─ Chart.tsx
│  │  ├─ Profile.tsx
│  │  ├─ Settings.tsx
│  │  └─ Tables.tsx
│  ├─ Transactions/
│  │  ├─ Create_Transactions.jsx
│  │  ├─ Edit_Transactions.jsx
│  │  └─ Show_All_Transactions.jsx
│  ├─ types/
│  │  ├─ brand.ts
│  │  ├─ chat.ts
│  │  ├─ package.ts
│  │  └─ product.ts
│  ├─ App.tsx
│  ├─ jsvectormap.d.ts
│  ├─ lib.d.ts
│  ├─ main.tsx
│  └─ react-app-env.d.ts
├─ .gitignore
├─ .prettierrc
├─ index.html
├─ LICENSE.md
├─ package-lock.json
├─ package.json
├─ postcss.config.cjs
├─ tailwind.config.cjs
├─ tsconfig.json
├─ tsconfig.node.json
└─ vite.config.js

Things to do


How to make the buy/sell stock pages:


  • First make the form with the following fields:
    • symbols
    • Name
    • timestamp
    • price per unit
    • quantity
  • important write in the top that the time and price should be accurate otherwise you will not get the correct analysis of your stocks
  • Now in the symbol field, I try to choose only the stocks on which backed can produce stock data. This can be done by this:
    • Make the api to get all_stocks_name
    • After that do the select and option in frontend to select only one of these stocks only
  • Add the new column on the showing stocks names where it will do the following things:
    • Get the stock symbol from the URL using params only and doing the same thing as above.

How to show the user stocks dashboard:


  • Here we will show only the current stocks not the history of stocks(like buy and sell history).
  • it will be similar to the holding pages of groww.
  • It will show the following things:
    • Stock symbols
    • stock name
    • Average price per unit
    • number of units
    • created at
    • last modified
    • net profit
  • After that it will show the button of history, that will lead to history page that will show all the buy and sell stock history of that particular stocks.

How to make the stock history page:


  • Initilally it will show all the buy and sell records of stocks.
  • You can do the following things in this page:
    • sort by stock symbol
    • sort by sell or buy orders
    • sort by creation date
    • sort by last modified date
    • sort by name of stock ascending or descending
    • sort by price per unit
    • sort by quantity

Make a particular page for a stock


  • It will show the broad view of the stocks like:
    • Historical graph of the stock
    • Current value of the stock
    • All the previous buy and sell orders
    • Graph with combining of buy and sell orders.
  • Graph with combining of buy and sell orders:
    • In this i will give select option on the top of the graph to select the buy or sell orders
    • By selecting the option you can see what would have happened if you have done that thing (like if have buy or sell that stock on that particular time)

About

In this project i have tried to combine the following things: (notes, finance, transaction, stocks). In this project user can see the graph of the stock like grow site(but in worse conditions). Along with this my main purpose here is that user can enter the buy or sell orders and see what would have happened if he have buyed or selled that stocks.

Topics

Resources

License

Stars

Watchers

Forks