Vortigern is our opinionated boilerplate for crafting universal web applications by using modern technologies like TypeScript, React and Redux.
Vortigern uses the following libraries and tools:
.
โโโ build # Built, ready to serve app.
โโโ config # Root folder for configurations.
โ โโโ test # Test configurations.
โ โโโ types # Global type definitions, written by us.
โ โโโ webpack # Webpack configurations.
โ โโโ main.ts # Generic App configurations.
โโโ node_modules # Node Packages.
โโโ src # Source code.
โ โโโ app # App folder.
โ โ โโโ components # React Components.
โ โ โโโ containers # React/Redux Containers.
โ โ โโโ helpers # Helper Functions & Components.
โ โ โโโ redux # Redux related code aka data layer of the app.
โ โ โ โโโ modules # Redux modules.
โ โ โ โโโ reducers.ts # Main reducers file to combine them.
โ โ โ โโโ store.ts # Redux store, contains global app state.
โ โ โโโ routes.tsx # Routes.
โ โโโ client.tsx # Entry point for client side rendering.
โ โโโ server.tsx # Entry point for server side rendering.
โโโ typings # Type definitions installed with typings.
โโโ .dockerignore # Tells docker which files to ignore.
โโโ .gitignore # Tells git which files to ignore.
โโโ .stylelintrc # Configures stylelint.
โโโ Dockerfile # Dockerfile.
โโโ favicon.ico # Favicon.
โโโ package.json # Package configuration.
โโโ README.md # This file
โโโ tsconfig.json # TypeScript transpiler configuration.
โโโ tslint.json # Configures tslint.
โโโ typings.json # Typings package configuration.
You can clone from this repository or install the latest version as a zip file or a tarball.
$ git clone https://github.com/barbar/vortigern
$ cd vortigern
$ npm install
All commands defaults to development environment. You can set NODE_ENV
to production
or use the shortcuts below.
# Running
$ npm start # This starts the app in development mode
# Starting it with the production build
$ NODE_ENV=production npm start # or
$ npm run start:prod
# Building
$ npm build # This builds the app in development mode
# Commands below builds the production build
$ NODE_ENV=production npm build # or
$ npm run build:prod
# Testing
$ npm test
For Windows users, we recommend using the shortcuts instead of setting environment variables because they work a little different on Windows.
# If you want install additional libraries, you can also install their typings from DefinitelyTyped
$ typings install dt~<package> --global --save
# or if it's located on npm
$ typings install <package> --save
Vortigern is released under the MIT license.
The image in this README belongs to hhvferry.com.
We help startups start and stay started by helping them plan, strategize, fund and execute their vision.
You can contact us at [email protected]
Be sure to check out available jobs at Barbar.