3.0.0 • Published 5 years ago

razzle-examples-with-koa v3.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Using Razzle and Koa

How to use

curl https://codeload.github.com/jaredpalmer/razzle/tar.gz/master | tar -xz --strip=2 razzle-master/examples/with-koa
cd with-koa
  • Install it and run:
yarn install
yarn start

Idea behind the example

This is an example of how to use Koa, a popular web application framework, with a Razzle project, as an alternative to the default Express server.js setup.

Being minimalistic in its philosophy, Koa doesn't include most required dependencies to mimic its Express counterpart, so this example relies on some additional packages.

Static file serving middleware. Used to serve resources under process.env.RAZZLE_PUBLIC_DIR.

Express-styling router middleware for Koa. Will direct HTTP GET requests to your React client.

Provides important security headers to make your app more secure by default. Among other things, it prevents the X-Powered-By header from being sent to requesting clients.


For additional information, refer to Koa offical documentation.

3.0.0

5 years ago

3.0.0-alpha.2

5 years ago

3.0.0-alpha.1

5 years ago

2.4.1

5 years ago

3.0.0-alpha.0

5 years ago

2.4.0

6 years ago

2.0.0

6 years ago

2.0.0-alpha.12

6 years ago

2.0.0-alpha.11

6 years ago

2.0.0-alpha.10

6 years ago

2.0.0-alpha.9

6 years ago

2.0.0-y.0

6 years ago

2.0.0-alpha.8

6 years ago