https://github.com/sky0621/cv-admin-front
https://github.com/sky0621/cv-admin-front
ant-design nextjs react recoil typescript zod
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sky0621/cv-admin-front
- Owner: sky0621
- License: mit
- Created: 2023-06-22T14:45:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T00:58:02.000Z (about 2 years ago)
- Last Synced: 2025-03-14T20:46:20.610Z (over 1 year ago)
- Topics: ant-design, nextjs, react, recoil, typescript, zod
- Language: TypeScript
- Homepage:
- Size: 294 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cv-admin-front
## environment
```
node -v
v20.5.0
npm -v
10.1.0
```
## setup
### NEXT.js
https://nextjs.org/docs/getting-started/installation#next-steps
```bash
npx create-next-app@latest
```
### server-only
https://nextjs.org/docs/getting-started/react-essentials#the-server-only-package
```bash
npm install server-only
```
### prettier
https://prettier.io/docs/en/install.html
```bash
npm install --save-dev --save-exact prettier
```
#### Git hooks
https://prettier.io/docs/en/install.html#git-hooks
```bash
npm install --save-dev husky lint-staged
npx husky install
npm pkg set scripts.prepare="husky install"
npx husky add .husky/pre-commit "npx lint-staged"
```
##### Add the following to your package.json:
```json
{
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
}
}
```
#### prettierignore
https://prettier.io/docs/en/ignore.html#ignoring-files-prettierignore
### OpenAPI ジェネレーター
https://openapi-generator.tech/docs/installation/
```bash
brew install openapi-generator
```
#### gen
```bash
openapi-generator generate -i /Users/sky0621/work/github.com/sky0621/cv-admin/schema/openapi.yml -g typescript-fetch -o ./src/lib/api/
```
### Ant Design
https://ant.design/
```
npm install antd
```
```
npm install @ant-design/colors
```
```
npm install @ant-design/nextjs-registry
```
### reset.css
https://github.com/mayank99/reset.css
```
npm install @acab/reset.css
```
### recoil
https://recoiljs.org/
```
npm install recoil
```
### zod
```
npm install zod
```
## Getting Started
First, run the development server:
```bash
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.