acarnagey / Sovryn-frontend

Home Page:https://live.sovryn.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sovryn App


buddy pipeline

Install & Start

Make sure you use at least 10 version of node.js.

Install packages:

yarn

Start app for development:

yarn start

Build for production:

yarn build

Components vs Containers

Containers are responsible on how things work and components on how things look. Think about containers as pages or stateful wrappers that holds components and components as buttons, inputs, cards, etc.

Environment variables

You can use .env.local file for env variables while developing. Variable should be prefixed by REACT_APP_ to be accessible by react application. For example REACT_APP_BASE_URL=http://test.app can be retrieved by process.env.REACT_APP_BASE_URL

.env.local, .env.production and etc files should contain default configuration that all team members are using, if you need some custom settings then copy .env.local file, name it .env and edit as needed. .env file can't be committed and will prevent configuration overwrites for other developers.

Generators

Project uses generators (./internals/generators) to speed up component & container creation.

For example if you want to create new component run fallowing command:

yarn generate component PhoneInput

Generator then will ask couple of questions and create component named PhoneInput with contents that will be good starting point.

Generate container:

yarn generate container LoginPage

Features

Predictable state management
Unidirectional data flow allows for change logging and time travel debugging.
Instant feedback
Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes to the CSS and JS are reflected instantaneously without refreshing the page. Preserve application state even when you update something in the underlying code!
Next generation CSS
Write composable CSS that's co-located with your components for complete modularity. Unique generated class names keep the specificity low while eliminating style clashes. Ship only the styles that are on the page for the best performance.
Industry-standard routing
It's natural to want to add pages (e.g. `/about`) to your application, and routing makes this possible.
Industry-standard i18n internationalization support
Scalable apps need to support multiple languages, easily add and support multiple languages.
Typescript
Typescript is the key to scalability. Build self-documented code, easy-to-debug code and create maintainable large applications and codebases with a highly productive development experience.
Quick scaffolding
Create components, containers, routes, selectors and sagas - and their tests - right from the CLI!
Static code analysis
Focus on writing new features without worrying about formatting or code quality. With the right editor setup, your code will automatically be formatted and linted as you work.
SEO
We support SEO (document head tags management) for search engines that support indexing of JavaScript content. (eg. Google)

But wait... there's more!

  • The best test setup: Automatically guarantee code quality and non-breaking changes. (Seen a react app with 100% test coverage before?)
  • The fastest fonts: Say goodbye to vacant text.
  • Stay fast: Profile your app's performance from the comfort of your command line!

About

https://live.sovryn.app

License:MIT License


Languages

Language:TypeScript 81.0%Language:JavaScript 10.8%Language:SCSS 5.4%Language:HTML 1.6%Language:Handlebars 1.2%Language:Shell 0.0%