Coder Social home page Coder Social logo

effector / razzle-template Goto Github PK

View Code? Open in Web Editor NEW
65.0 14.0 4.0 3.2 MB

SSR template with React, Effector, TypeScript, ReactRouter, and StyledComponents

License: MIT License

JavaScript 2.99% TypeScript 97.01%
react effector react-router typescript styled-components razzle

razzle-template's Introduction

Effector SSR Template

code style: prettier Commitizen friendly Conventional Commits

Note: this is template slightly outdated and will be updated as soon as possible.

How to use

  1. Press Use this template button.

  2. Clone it, install and run:

yarn install
yarn start
  • Use import {} from "effector-root" instead of "effector". All units should be created in the root domain.
  • Use createStart, withStart and useStart from page-routing.ts for pages start events.

Structure

https://sova.dev/application-structure

  • src/server.tsx — Express server, that renders React to stream
  • src/index.tsx — Node.js entry point, that have hot module replacement and imports server
  • src/client.tsx — Browser side entry point, that hydrates stores and react app
  • src/application.tsx — Application component, that have global styles and effector provider
  • src/pages/index.tsx — Pages component
  • src/pages/routes.ts — Static routes config
  • src/pages/:page-name/index.tsx — View for single specific page
  • src/pages/:page-name/model.ts — Business-logic for specific page, that contains single level logic layer
  • src/lib — Internal libraries
  • src/lib/effector — START event name to use as page property

razzle-template's People

Contributors

cinic avatar dependabot[bot] avatar olegbrony avatar sergeysova avatar zerobias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

razzle-template's Issues

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.