Giter Site home page Giter Site logo

jennifer-lu / htn-dev-chl Goto Github PK

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

Hackathon Global web app for Hack the North's 2022 Frontend Developer Challenge

Home Page: htn-dev-chl.vercel.app

JavaScript 0.20% HTML 2.78% TypeScript 96.81% Shell 0.22%

htn-dev-chl's Introduction

htn-dev-chl

๐ŸŒŽ Hackathon Global web app for Hack the North's 2022 Frontend Developer Challenge.

web-app-light

web-app-dark

Getting started

Prerequisites

Verify yarn is installed:

yarn --version

If yarn is not installed, please see instructions for installing yarn.

Run the application

Clone and run:

# Clone repository
git clone https://github.com/jennifer-lu/htn-dev-chl.git

# Go to directory
cd htn-dev-chl

# Set environment variables
mv .sample-env .env

# Install dependencies
yarn install

# Run locally
yarn start

Open localhost:3000 in your browser to view the web app.

Note: You can use your own environment variables. Make a .env file and set the variables REACT_APP_USERNAME and REACT_APP_PASSWORD to your desired username and password, respectively.

Architecture

Stack

Frontend JavaScript libraries: React, TypeScript

Component library: Chakra UI

Search library: Fuse.js

API client libraries: Apollo Client, GraphQL

Linters: ESLint, Prettier

Directory structure

.
โ”œโ”€โ”€ node_modules
...
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ prettier.config.js
โ”œโ”€โ”€ public
โ”‚ย ย  โ”œโ”€โ”€ images                          # Image assets
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ earth-background-dark.png
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ earth-background-light.png
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ earth-icon.png
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ earth-modal-dark.png
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ earth-modal-light.png
โ”‚ย ย  โ”œโ”€โ”€ index.html
โ”‚ย ย  โ”œโ”€โ”€ manifest.json
โ”‚ย ย  โ””โ”€โ”€ robots.txt
โ”œโ”€โ”€ src
โ”‚ย ย  โ”œโ”€โ”€ App.tsx
โ”‚ย ย  โ”œโ”€โ”€ api                             # API
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ApiClient.ts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ queries
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ EventQueries.ts
โ”‚ย ย  โ”œโ”€โ”€ components                      # Components
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ homepage
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ EventCard.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Footer.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ RelatedEventList.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ SpacerCard.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ SpeakerList.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ WelcomeModal.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ navigation
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ColorModeComponent.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ LoginComponent.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ NavigationBar.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ NavigationMenu.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ SearchBar.tsx
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ pages
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ HomePage.tsx
โ”‚ย ย  โ”œโ”€โ”€ contexts                        # Contexts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ AuthContext.ts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ColorModeContext.ts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ DeviceContext.ts
โ”‚ย ย  โ”œโ”€โ”€ index.tsx
โ”‚ย ย  โ”œโ”€โ”€ react-app-env.d.ts
โ”‚ย ย  โ”œโ”€โ”€ reportWebVitals.ts
โ”‚ย ย  โ”œโ”€โ”€ setupTests.ts
โ”‚ย ย  โ””โ”€โ”€ theme                           # Styling
โ”‚ย ย      โ”œโ”€โ”€ colors.ts
โ”‚ย ย      โ”œโ”€โ”€ components
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ Button.ts
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ Heading.ts
โ”‚ย ย      โ”œโ”€โ”€ darkTheme.ts
โ”‚ย ย      โ””โ”€โ”€ lightTheme.ts
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ yarn.lock

Design

Figma wireframes

htn-dev-chl's People

Contributors

jennifer-lu 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.