https://github.com/kevinadhiguna/antdpro-strapi-urql
Ant Design Pro v5 boilerplate powered by Strapi GraphQL API and Urql GraphQL client 🌟
https://github.com/kevinadhiguna/antdpro-strapi-urql
ant-design-pro graphql strapi typescript urql
Last synced: 8 months ago
JSON representation
Ant Design Pro v5 boilerplate powered by Strapi GraphQL API and Urql GraphQL client 🌟
- Host: GitHub
- URL: https://github.com/kevinadhiguna/antdpro-strapi-urql
- Owner: kevinadhiguna
- Created: 2021-05-19T12:53:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T02:53:21.000Z (about 3 years ago)
- Last Synced: 2025-01-11T13:21:02.804Z (9 months ago)
- Topics: ant-design-pro, graphql, strapi, typescript, urql
- Language: TypeScript
- Homepage:
- Size: 643 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ant Design Pro x Strapi GraphQL x URQL client
Ant Design Pro v5 boilerplate powered by Strapi GraphQL API and Urql GraphQL client 🌟
[](http://umijs.org/)
![]()
![]()
![]()
![]()
![]()
**🚧 Currently still in development...**
## Environment Prepare
Install `node_modules`:
```bash
yarn
```
or```bash
yarn install
```
## Prepare Application Configuration
Copy `appConfig.dev.json` to create `appConfig.json`:
```bash
cp src/appConfig.dev.json ~/antdpro-urql-strapi/src/appConfig.json
```If the above command does not work, you can use File Manager to copy `appConfig.dev.json` manually or even just create `appConfig.json` inside the `/src` directory.
This allows you to separate application configuration on client-side based on the environment (development, staging, production, etc.)
- `appConfig.json`: Default.
- `appConfig.local.json`: Local overrides. This file is loaded for all environments except test.
- `appConfig.dev.json`, `appConfig.test,json`, `appConfig.prod.json` : Environment-specific settings.
- `appConfig.development.local`, `appConfig.test.local.json`, `appConfig.prod.local.json`: Local overrides of environment-specific settings.Reference : [Create React App - Adding Custom Environment Variables](https://create-react-app.dev/docs/adding-custom-environment-variables/#what-other-env-files-can-be-used)
## Available Scripts
Here are some useful script to help you quick start and build with web project, code style check and test.
Scripts provided in `package.json`. It's safe to modify or add additional script:
### Start project
```bash
yarn start
```### Build project
```bash
yarn build
```### Check code style
```bash
yarn lint
```You can also use script to auto fix some lint error:
```bash
yarn lint:fix
```### Test code
```bash
yarn test
```
## To-do :
- [ ] Fix login issue ([#1](https://github.com/kevinadhiguna/antdpro-strapi-urql/issues/1))
## 📦 Looking for Ant Design Pro with Apollo GraphQL client ?
Here is the repo you might be looking for : [https://github.com/kevinadhiguna/antdpro-strapi-auth](https://github.com/kevinadhiguna/antdpro-strapi-auth)
## 🔎 Looking for the Server-side ?
Here is the Strapi app that you can use with this project : [https://github.com/kevinadhiguna/strapi-dockerize](https://github.com/kevinadhiguna/strapi-dockerize)
