Short description
- Table of contents
- Quick start
- Status
- What's included
- Bugs and feature requests
- naming conventions rules
- Contributing
- Creators
- Thanks
- Copyright and license
-
install and initialize
-
install netlify-cli globally
$ npm install netlify-cli -g
-
install module
$ npm i
-
create
.env.localfile for netlify functions developmenttouch .env.local
- copy .env.defaults variable to
.env.localfile.
- copy .env.defaults variable to
-
.create
.env.localfile for vite developmenttouch src/pages/.env.local
- copy .env.defaults variable to
.env.localfile.
- copy .env.defaults variable to
-
-
development
-
start
vite(front-end)$ npm run dev
-
start
netlify functions(back-end)$ npm run serve
-
start together (
vite+netlify functions)$ npm run dev:serve
sometimes netlify-cli or vite-cli will crash
-
design your schema and types
Edit setting/index.ts for your database schema.
-
-
build and deployment
-
build static pages
$ npm run build
-
deploy on
netlify-
create
Netlifysitenetlify sites:create
-
or link
Netlifysite idnetlify link
-
set
Netlifyenvironment variables same as.env.local.
-
deploy
Netlifyfunctions.$ npm run deploy
check more detail for Netlify cli
-
-
- Development since November 2023
- use vite for development environment and bundler.
- use React for main javascript library.
- use Typescript for syntax.
- use LessCSS and TailwindCSS for css library.
- use ESLint rules for coding style.
- use Mocks and faker for testing API.
- use Netlify for deployment.
- use Express for api router.
publicfolder will copy to/distsrcfolder is reactJs entry point. default file is named aspages/index.tsxnetlify/functionsfolder for express and Netlify functions source code.setting/index.tsconfig for schema and typescript setting.
- Node version must be above v18
- I will not maintain when this project is closed
- general variable -
Camel Caseex: setState、currentTarget、pinkBackground、innerText
- react components and class name -
Pascal Case.ex: RegularButton、NavigationBar
- global variable or state -
Pascal Case.ex: Context、LandingState
- Immutable variable or environment variable -
Screaming Snake Case.ex: PAGE、VITE_TITLE
- type -
I= interface,T= type.ex: IProps、TResult
- enum options -
Pascal Case+"Type".ex: ActionType、AlertType、ModalType
- class name =
Snake Case.ex: .button-group、.button-label
Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.
Moreover, all HTML and CSS should conform to the Code Guide, maintained by Main author.
maintainer, developer
Thank customers and some manufacturers for their support.
Code and documentation copyright 2011-2022 the authors. Code released under the MIT License.