在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:serlo/frontend开源软件地址:https://github.com/serlo/frontend开源编程语言:TypeScript 97.7%开源软件介绍:serlo.org – FrontendNext.js app that serves serlo.org. OverviewThe frontend fetches data from the API server and renders it to a web page. A standalone deployment of the frontend is enough to view most parts of Serlo. In a more complete environment, the frontend sits behind a cloudflare worker that handles routing and redirections. Many editing features are still handled by our legacy server. Deployment of the staging environment: https://frontend-git-staging-serlo.vercel.app Getting startedLocal installationYou can run the frontend on your local system. For that, install Node.js > v12.22.0 and yarn > v3. Then, run following commands: git clone https://github.com/serlo/frontend.git
cd frontend
yarn
yarn dev The server is now running on localhost:3000. next.js frameworkThe frontend is built with next.js and uses many features of it. A good way to get started in this repo is to make yourself familiar with next.js. This will make it quite clear how the system is working. Features we use include (and are not limited to):
RepositoryHere are some useful places:
Some useful commands:
Starts the development server. This enables hot reloading and development warnings.
Runs eslint and prettier, fixes issues automatically if possible.
Runs tsc, eslint and prettier (without automatic fixes). This command needs to pass before merging into staging.
Creates a build of the frontend, shows summary of build artefacts and creates in-depth analysis of the bundles.
Runs jest tests.
Generates exact types for some GraphQL queries and mutations. Add yours in All files are named with kebab-case. You should use More informationYou can find more detailed explanations in our wiki. Currently, we have these pages available:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论