GithubHelp home page GithubHelp logo

sreehari2003 / growwstonks Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21.97 MB

Stock market demo using Alphavantage api - Internship assignment for groww.com

Home Page: https://growwstonks-drab.vercel.app/

TypeScript 99.96% JavaScript 0.01% CSS 0.03%

growwstonks's Introduction

ContributorsForksStargazersMIT License

Internship task for groww.in

Built With

  • Next js
  • Typescript
  • React query
  • Tailwind css
  • Radix ui for dialog
  • Ant icons

Folder structure

project structure/
├── hooks
│ ├── api - all api calls as react query hook
│ └── all normal react hooks
├── components - all components that are used in more than one page
└── layout - contain all diffrent layout specific code
└── views - contain all page specific components
├── utils - contains all utility functions
└── config - contains envs and end points
├── utils - contains all utility functions
└── pages - all website pages


Demo

demo.1.mov

Project

Layout structue

  • to prevent repetition of code i have used special type layout structure for each layout when we does this
   
Home.Layout = HomeLayout;
export default Home;
  • in _app.tsx it wraps the code like this
     {Component.Layout ? (
         <Component.Layout>
           <Component {...pageProps} />
         </Component.Layout>
           ) : (
         <Component {...pageProps} />
       )}

Bundle size

since the code is only 2 page i have made sure not to use unwanted dependecy , becuase of this the total bundle size is very less

Server side rendering

  • the more info page is loaded via server side rendering , it fetch the company info before the page is renderd

Typescript

  • code is 100% type defined , this helps for better maintainibilty

Images

Dependency

Prerequisites

You need to install

  1. Node v16
  2. npm

Installation

  1. Clone the repo

    git clone https://github.com/sreehari2003/growwstonks
  2. Install all the NPM packages all the applications.

    npm install
  3. Copy the .env.example for each applications to .env in the same directory and fill the values required

  4. Start the web application dev server and open http://localhost:3000

    npm run dev

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

growwstonks's People

Contributors

sreehari2003 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.