Giter VIP home page Giter VIP logo

reacttsexpresststemplate's Introduction

React Typescript Frontend Template

Commitizen friendly

Table of Contents

Local Development

Clone the project and install it using the command below.

yarn install

Run the project by using the command below.

yarn start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

Production Build

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

Testing

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

Contributing

This application makes it easy to write clean code by formatting and linting using Husky. On commits, which are initiated using the git command git cz Husky runs a pre-commit script. It formats and lints the code to the AirBnb standard to ensure code quality. On push, Husky runs the pre-push script to update the CHANGELOG.md, listing all conventional commits, bumping the version and pushing.

Continuous Integration

I created a github action when a pull request is made to the main branch, the application is built and tested. Ideally there would be multiple CI yml files to protect branches and ensure there is a smooth pipeline from local development to production.

Component based design

The application was built with compoment based design. The idea is to reuse components where possible and to make the pages respond to the properties passed into them.

The idea was to only create the necessary amount of components and to pass state around when needed. Context stores were not created to reduce complexity due to the small scope of the project.

Styling

Styling was achieved with CSS. MUI was used as a component library to bootstrap components such as buttons, textfields, and pagination.

Strong typing

While not a requirement, I utilized typescript to understand the shape of properties that components are consuming. During development this allowed me to understand errors and using intellisense, I was able to predict what was necessary when building portions of the application.

Languages and Tools:

This application was built using HTML, CSS, React (Typescript).

html5 css3 javascript typescript react

This project was bootstrapped with Create React App.

reacttsexpresststemplate's People

Contributors

esaldivar avatar

Stargazers

Phillip Sturgeon 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.