It is a kitchen simulator (self-contained micro-frontend).
sh
nvm use 20
yarn
yarn start
`
You need to check webpack.config.js to change the API server.
`
if (isProduction) {
config.plugins.push(
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
API_URL: JSON.stringify(
'https://kcapi-env.eba-dq5t7k2i.us-east-2.elasticbeanstalk.com'
)
}
})
);
} else {
config.plugins.push(
new webpack.DefinePlugin({
'process.env': {
API_URL: JSON.stringify('https://api.addovisuals.com'),
MODE: JSON.stringify('staging')
}
})
);
}
`
- NODE_ENV: production or development environment
- API_URL: the API server URL
- MODE`: development environment usually needs staging mode. staging mode exposes the unfinished features to the user.