Code Monkey home page Code Monkey logo

operations-client-boilerplate's Introduction

Operations Application - React

This project is based on NextJs - "a minimalistic framework for server-rendered React applications". Out of the box it includes css support, webpack transpilation and bundling, hot code reloading, static files serving and server side rendered pages.

You can find more about it in detail in Github and it is widely supported in the react community.

Setup

In the project root run yarn install - install yarn here

run yarn dev and you should see the app running on http://localhost:3000

Building pages

In the folder ./pages you can create .js files and the server will render these as new pages, the url maps to the name of the file - but this can be overriden as well (check NextJs docs for this or ping someone on the team about this).

Styles

  • Styled-Components

For styling we use a css in js library called Styled-Components - it's very simple but yet powerful. You can do everything you can do with css and more - for example, running functions inside css declarations (kinda like mixins in Sass), theming, etc. Very easy to pick up and also widely supported.

  • Cot-Experience

This is our internal component library that we use to build UIs. It is comprised of components that are common across our applications and follows our design language - mostly influenced by Google's Material Design.

You can find more about it or to raise issues at Github

You can browse the component library here

Static files - images, css, etc

You can create at the roote level a static folder and add reference to files like /static/images/myimage.jpeg for example. See more here

Mock-APi

This is not ready yet - work in progress

operations-client-boilerplate's People

Contributors

txbrown 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.