1 Star 0 Fork 0

大雕游戏 / rescript-react-realworld-example-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.54 KB
一键复制 编辑 原始数据 按行查看 历史
jihchi 提交于 2023-05-18 11:49 . Migrate npm to pnpm

RealWorld Example App

GitHub commit activity GitHub last commit GitHub

ReScript + React codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

Demo    RealWorld

This codebase was created to demonstrate a fully fledged fullstack application built with ReScript & React including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the ReScript & React community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

How it works

Basically its just like React single-page-application but written in ReScript with React.

  • Using Vite as the frontend build tool
  • Seamlessly integrate with ReScript (previously known as BuckleScript/ReasonML) and rescript-react
  • Routing - ReScript React Router

Getting started

You can view a live demo over at https://rescript-react-realworld-example-app.vercel.app

To get the frontend running locally:

git clone https://github.com/jihchi/rescript-react-realworld-example-app.git
cd rescript-react-realworld-example-app
pnpm install
pnpm start

Then open http://localhost:3000 to see your app.

When you’re ready to deploy to production, create a production build with pnpm run build and you will find result in folder /dist, after you created a production build, you can execute pnpm run serve to serve the folder.

Contributors

Many thanks for your help!

The image of contributors is made with contrib.rocks.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dadiaogames/rescript-react-realworld-example-app.git
git@gitee.com:dadiaogames/rescript-react-realworld-example-app.git
dadiaogames
rescript-react-realworld-example-app
rescript-react-realworld-example-app
cleanup

搜索帮助

344bd9b3 5694891 D2dac590 5694891