yarn create strapi-app 프로젝트명
module.exports = ({ env }) => ({
connection: {
client: 'mysql',
connection: {
host: env('DATABASE_HOST', 'DB서버 IP'),
port: env.int('DATABASE_PORT', 3306),
database: env('DATABASE_NAME', 'DB명'),
user: env('DATABASE_USERNAME', '사용자명'),
password: env('DATABASE_PASSWORD', '패스워드'),
ssl: env.bool('DATABASE_SSL', false),
},
},
});
yarn develop
yarn start
yarn build
http://서버 IP:1337
GET http://서버 IP:1337/우측에 표시된 API 작성