| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ReasonML lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems. This quickstart uses ReasonReact, and lets you build webpages with React components.
FROM node:6
RUN npm install -g bs-platform
RUN yarn global add serve
# Copy just the package.json first to install deps
ADD src/package.json /app/package.json
WORKDIR /app
RUN npm install
RUN npm link bs-platform
# Now add source code & build
ADD src /app
RUN yarn build
# Serve with serve ;)
CMD ["serve", "-s", "build", "-p", "8080"]$ hasura microservice open wwwTo test and make changes to this app locally, follow the below instructions.
You can view the logs emitted by the ‘serve’ package by running the below command:
$ hasura microservice logs wwwYou can see the logs in your terminal, press CTRL + C to stop logging.
You can use Redex (Reason Package Index) to find ReasonML packages, and you can add it to your project by running the following command:
$ npm install --save <package_name>Also add the package name under bsconfig.json
"bs-dependencies": [
"reason-react",
"bs-jest",
<package_name>
]
If changes have been done to the dependencies, commit, and perform git push hasura master to deploy the changes.
Hasura comes with a few handy tools to make it easy to add backend features to your apps.
Every project comes with an Authentication kit, you can restrict the access to your app to specific user roles. It comes with a crisp UI for Signup and Login pages out of the box, which takes care of user registration and signing in.
Follow the Authorization docs to add Authentication kit to your app.
Hasura project is composed of a set of microservices. These include certain Hasura microservices like, postgres, nginx, data API, auth API and more but can also include your own microservices.
Hasura comes with set of Data APIs to access the Postgres database which comes bundled with every Hasura cluster. You can use packages like refetch to make HTTP requests to the database. An example implementation with data APIs can be found here.
Detailed docs of data APIs can be found here.
| Back | FazBrowse Home | New Git URL |