Skip to content

iHaiduk/react-typescript

Repository files navigation

React 16 TypeScript Isomorphic Starter

with rxjs v5.4.3 + Immutable v4.0.0-rc.4

Build Status dependencies Status

This system was created for start any project on NodeJs and React.

Built using

For styles


For frontend side

Other
Babel

For backend side

DataBase and Memory
For user system
For SVG
Logging
Other

##Progressive Web App

##Production process manager for Node.js

Testing system


Other variants of project:


Getting Started

Requirement:

  • NodeJS 8+
  • MongoDB 3.4+
  • Redis 4.0+
  • Elasticsearch 5.6+

Install dependencies:

$ yarn install
$ npm install

Running development server

#####Run webpack watcher backend changes:

npm run backend-watch

#####Run webpack watcher frontend changes (for assets) and run dev-server:

npm run dev-server

#####Run backend side

gulp backend

Visit http://localhost:3000/.

Running production server

This will build the assets for you on the first run. For subsequent starts, you should run:

npm run production

#####Run server:

npm start

Visit http://localhost:1337/.

#####Restart server:

npm restart

#####Stop server:

npm stop

#####Kill process:

npm run kill

#####Show logs:

npm run logs

Linting Test

Style
$ gem install scss_lint
$ npm run scss-lint
TypeScript
$ npm run lint-typescript
All
$ npm run lint

##Task lists

  • Create isomorphic application
  • Connect React & Redux & Router
  • Add database - MongoDB
  • Add Redis.io v4+
  • Connect socket.io with Redis
  • Add ServiceWorker and AppCache
  • PM2 Start server
  • SVG sprite generator
  • Load images from static
  • Tinypng for images
  • Authorization Token System System has JWT module
  • Update React to v16
  • Add pipelines testing Travis CI
  • Add testing

Folder Structure Conventions

.
├── .awcache                # Cached build files
├── __tests__               # Folder with test files
├── client                  # Client load application
├── dist                    # Compiled files
├── route                   # Files for routing application
├── server                  # Server load applicaton
├── static                  # Static files
├── store                   # Redux store
├── styles                  # Application styles
├── view                    # React view components
├── webpack                 # Config for compilation
├── tools                   # Tools and utilities
├── .gitignore
├── .scss-lint.yml
├── .travis.yml             # Config file for Travis CI
├── ecosystem.json          # Config file for PM2
├── gulpfile.js
├── jestconfig.json         # Config file for Jest
├── package.json
├── README.md
├── tsconfig.json
└── tslint.json

Folder Structure Compiled Files

.
└── dist
    ├── public               # Assets folder
    └── server               # Server application

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published