Template to create Web application based on ReactJs easily.
Template to create web application based on React, Material UI and KsMf in an easy way. This project implements an example where three main entities are managed: Users, Tags and Comments.
- npm run client:build
- npm start
- npm run client:start
- npm run dev
Run all test:
- npm run
Run the tests separately:
- npm run client:test
- npm run server:test
This project depends on an external REST API service which provides all the data, therefore it works as an example of system integration.
+----------------+ +-------------+
| Web App |<--------------------->| REST API |
| React / KsMf | HTTPS | KsMf |
+----------------+ +-------------+
To connect this application with the external service follow the steps below:
- git clone https://github.com/ameksike/ksmf-skeleton-rest.git
- cd ksmf-skeleton-rest
- npm install
- edit ./cfg/config.json and define database access options
- npx sequelize-cli db:migrate
- npx sequelize-cli db:seed:all
- npm start
- back to this project 'ksmf-skeleton-web-angular'
- edit
server\src\app\service\MyAPI.jsconstructor or create.envwith MyAPI_URL and set http://localhost:3005 or the specific configuration for the external REST API in case the default options have been changed.
For more information see the following link: ksmf-skeleton-rest.
- client
| + build
| + public
| + src
| - package.json
| - README.md
- server
| + bin/
| | - server.js
| + cfg/
| | - config.json
| | - core.json
| + src/
| | + app/
| | | - index.js
| | + commnet/
| | | + controller/
| | | | - DefaultController.js
| | + user/
| | | + controller/
| | | | - DefaultController.js
- package.json
- .env
- .gitignore
- README.md
- npm install ksmf
- npm install axios
- npm install jest --save-dev
- npm install supertest --save-dev
- npm install nodemon --save-dev
- npm install -g create-react-app
- npm init react-app client
- cd client
- npm install @mui/material @emotion/react @emotion/styled
- npm install react-i18next i18next --save
- npm install react-redux
- npm install @reduxjs/toolkit
- npm install sass --save-dev
