- MySQL 8.*
- YARN
- NODE
- Visual studio code
- Headless cms by Nodejs + expressjs
- Next.js + graphql
- Mysql
- For backend :
- Config the database at database.js (create new schema if it not exist)
- Run on the root directory:
- Switch database to client or request to #Hieu to add your IP to authorized access IP
yarn
yarn build
- For frontend:
yarn
yarn dev
-
For backend :
yarn start
-
For front end:
yarn dev
-
For cms :
- After cms launched
normarly http://localhost:1337/admin
. Let's start fill in some initial data for HomePage first Example can see at here: .... - API: http://localhost:1337/api/homepages
- Graphql: http://localhost:1337/graphql admin: [email protected] pass: Password@1P
- After cms launched
-
For front end: We have 3 solutions to generate a site data:
- static generate
-
For backend :
-
For front end:
- MySQL
- ER_NOT_SUPPORTED_AUTH_MODE: