Giter VIP home page Giter VIP logo

react-nextjs-seed's Introduction

Project Seed

This project is the public front end UI for a project. It is written in Typescript with the Next.js framework for Server Side Rendering of React, using a Redux data store using Saga for async/side effecting. Jest is used for testing, with Enzyme for DOM tests.

Locations where changes are needed are marked with "#@Change-this".

The slack channel for the project is the 'projectShort = "#@Change-this"' from the .cicd/deploy.jenkinsfile if #@Change-this was replaced with "test=seed" the slack channel would need to be named #test=seed .

For a build to run, each project requires a volume in jenkins project to store the npm packages as it is building. The volumes can be made [https://openshift.staging.CompanyName.co/console/project/jenkins/browse/storage] or equivalent. The volume should be named $projectShort-home-jenkins-npm. These volume are needed for jenkins to build the project.

The project will also need a name space defined in the openshift [https://openshift.staging.CompanyName.co/console/projects]. The name of the space should be $projectShort-staging. The project will not deploy without this space.

Project Structure

Next uses convention based routing, with each file in the pages directory corresponding to a route. Each page uses reusable react components defined in src/components.

State is managed by Redux/Saga. New reducers, sagas and actions can be defined by creating the relevant file in the respective directory in src/store.

Styling is defined as SCSS in src/styles. Ultimately main.scss acts as the stylesheet for the application. All colours used should be defined as variables in colours.scss under role-based names to allow for easy pallete switches at a later time. Styling specific to individual pages or components should be under the relevant subdirectory.

Development

To run in dev mode with hot-reloading and linting, run yarn dev.

Testing

To execute the Jest test suite, run yarn test. Tests are defined in test under the same subdirectory structure as the corresponding source code.

Production

To run in a production environment, build using yarn build, and start with yarn start.

react-nextjs-seed's People

Contributors

robinmca avatar dependabot[bot] avatar

Watchers

Daniel Spasojevic avatar James Cloos avatar Justin Smith 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.