3e51ddb8af
* Run prettier over packages/**/*.js * Run prettier over packages/**/*.ts * Run prettier over examples * Remove tslint * Run prettier over examples * Run prettier over all markdown files * Run prettier over json files |
||
---|---|---|
.. | ||
pages | ||
server | ||
.gitignore | ||
bsconfig.json | ||
package.json | ||
README.md |
Custom server REASONML
Install it and run:
npm install
npm run dev
# or
yarn
yarn dev
Build the app
yarn next:build
npm run next:build
Run the production app
Run this command after yarn build.
yarn start
The idea behind this example
ReasonML is an exciting new language and since it can compile directly to JS via bucklescript that means that we can power our backend server with REASONML and also have the frontend built with reasonreact, which is covered in another example. This example shows how powerful & helpful it can be to build a next js custom server with a typesafe language.
The example has been built off the custom-server
example that uses pure nodejs
to build the custom server.