pistachiology / frontend-secure-web-server

simple frontend using reason-react for final project (secure web server using container and rust).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

website

Run Project

yarn install
yarn start
# in another tab
yarn dev

After you see the webpack compilation succeed (the npm run webpack step), open up src/index.html (no server needed!). Then modify whichever .re file in src and refresh the page to see the changes.

For more elaborate ReasonReact examples, please see https://github.com/reasonml-community/reason-react-example

Build for Production

npm run build
npm run webpack:production

This will replace the development artifact build/Index.js for an optimized version.

To enable dead code elimination, change bsconfig.json's package-specs module from "commonjs" to "es6". Then re-run the above 2 commands. This will allow Webpack to remove unused code.

About

simple frontend using reason-react for final project (secure web server using container and rust).


Languages

Language:OCaml 92.3%Language:JavaScript 7.0%Language:HTML 0.7%