Skip to content

Slick Telemetry frontend written in typescript with nextjs and vercel

License

Notifications You must be signed in to change notification settings

Slick-Telemetry/frontwing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeQL

frontend

Slick Telemetry frontend written in typescipt with nextjs and vercel.

Table of Contents:

Setting up the project

What you'll need

Getting Started

Install dependencies

It is encouraged to use yarn so the husky hooks can work properly.

pnpm i

Run the development server

You can start the server using this command:

pnpm dev

Open http://localhost:3000 with your browser.

Connecting to the backend server

Currently the standard is to run the backend locally. Follow instructions here for setup.

To make calls to API you need to duplicate the .env.example file to define a client-side bearer token

Commit Message Convention

This project is using conventional commits, it is mandatory to use it to commit changes.

Contribution Guidelines

  • NEVER MERGE YOUR OWN CODE; ALWAYS RAISE A PR AGAINST dev!

  • Always pull latest changes

    • There are several developers working on this project. Always pull the latest from the line you intend to commit your changes to. Since we are using Rebase and merge PR merge strategy (more information below), there would be times when git pull will fail.
    • If there are no local staged/unstaged changes, you can use git pull --force.
    • If there are local staged/unstaged changes, please stash or discard them as appropriate and then use git pull --force.
    • If you don't want to use git CLI, to simplify these operations and have a visual representation of the git tree, we suggest to use a git GUI -
  • Branches:

    • main is the production mainline.
    • dev is the development line.
  • PR merge strategy on Github

    • Code should flow in the following direction through branches:
      feature/bug fix -> dev -> main
      
    • We'll be keeping a linear commit history and so using a combination of Rebase and merge and Squash and merge merge strategies.
    • Use Rebase and merge as default to ensure all commits from the branch to be merged are brought in individually to the target branch.
    • Squash and merge may be used ONLY when bringing in changes from a feature/bug fix branch into dev.
    • To maintain linear commit history, ensure to use push force when:
      • Bringing dev on the same commit as main (ie rebasing dev onto main).
    • More information on git rebase.
    • More information on PR merge strategies.
  • Jira issue linking

    • Commits and PRs must be linked to a Jira issue.
    • To do so, include the Jira issue key in the PR title and/or the commit message after the conventional commit type.
    • More information on Jira smart commits.

Tests

// TODO cypress

Warning

Cypress does not officially support Next v14. If you enncounter any errors or issues please report them here

  • Background

    • Cypress uses chai based assertions
  • Running Cypress

    • pnpm run cypress:open

Deployment

// TODO vercel

Project Structure

We are using NextJs App Router for our project.

In Figma, you can view both the data flow as well as the component mapping.

`src/`
├── app/
    ├── api/ -> hub for api calls
    ├── dashboard/ -> telemetry home
    ├── schedule/ -> simple schedule for current/upcoming season
    └── ...landing page and layout content
├── components
    ├── Footer/ -> Generic Footer
    ├── QueryNav/ -> Search param nav
    ├── SelectionData/ -> Hub for main data view
    ├── Sidebar/ -> Top level query pages and sub query
    ├── TopNav/ -> Generic navigation Bar
    └── ui/ -> Components imported from shadcn
├── lib/ -> helpers, constants, & other utils
├── state-mgmt/

Resources

Key tools in use: shadcn, tailwindcss, react, nextjs, pnpm, cypress

About

Slick Telemetry frontend written in typescript with nextjs and vercel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •