Skip to content

Commit 39fbba3

Browse files
author
alirizaadiyahsi
authored
Merge pull request #359 from ryoldash/master
Abp React Implementation
2 parents 6889709 + fb99319 commit 39fbba3

File tree

140 files changed

+22178
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+22178
-1
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"App": {
66
"ServerRootAddress": "http://localhost:21021/",
77
"ClientRootAddress": "http://localhost:4200/",
8-
"CorsOrigins": "http://localhost:4200,http://localhost:8080,http://localhost:8081"
8+
"CorsOrigins": "http://localhost:4200,http://localhost:8080,http://localhost:8081,http://localhost:3000"
99
},
1010
"Authentication": {
1111
"JwtBearer": {

reactjs/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REACT_APP_APP_BASE_URL="http://www.ryoldash.com/"
2+
REACT_APP_REMOTE_SERVICE_BASE_URL="http://www.ryoldash.com/"

reactjs/.env.development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REACT_APP_APP_BASE_URL="http://localhost:3000"
2+
REACT_APP_REMOTE_SERVICE_BASE_URL="http://localhost:21021/"

reactjs/.env.production

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REACT_APP_APP_BASE_URL="http://www.ryoldash.com/"
2+
REACT_APP_REMOTE_SERVICE_BASE_URL="http://www.ryoldash.com/"

reactjs/.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.development
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*

reactjs/.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/*.md
2+
**/*.svg
3+
**/*.ejs
4+
**/*.html
5+
package.json

reactjs/.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 150,
5+
"overrides": [{
6+
"files": ".prettierrc",
7+
"options": {
8+
"parser": "json"
9+
}
10+
}]
11+
}

reactjs/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# ASP.NET Boilerplate ReactJS Template
2+
3+
The React.js integration for ABP Boilerplate framework. This template is built on React+Mobx+Typescript. SOLID, SoC principles are used.
4+
5+
![](_screenshots/dashboard.png)
6+
7+
## Getting Started
8+
9+
### Installing
10+
11+
After cloning repository, first install npm packages:
12+
13+
```sh
14+
cd reactjs
15+
npm install
16+
```
17+
18+
And then start
19+
20+
```
21+
npm start
22+
```
23+
24+
## Deployment
25+
26+
```sh
27+
npm build
28+
```
29+
30+
## Built With
31+
32+
* [React](https://reactjs.org/) - The JavaScript library for building user interfaces
33+
* [Typescript](https://www.typescriptlang.org/) - Used for static typing
34+
* [Mobx](https://mobx.js.org/) - Simple, scalable state management
35+
* [AntDesign](https://ant.design/) - A design system with values of Nature and Determinacy for better user experience of enterprise applications
36+
37+
# Architecture
38+
39+
This framework is designed by utilizing MVC design pattern and layered architecture as follows:
40+
41+
- All Backend communications are done by service layer.
42+
- For every Container Component there exists one Store and one Model.
43+
- Store has state of application so it consumes service See "Defining data stores". All service functions will be called in store not in Component. Component executes Store actions when state is needed.
44+
- Presentational Component can use store directly by injecting the store or Props from Container Component can be passed in it.
45+
- Container or Presentational Component can invoke store actions and automatic rendering of component will be done by Mobx.
46+
47+
![](_screenshots/architecture.jpg)
48+
49+
## Authors of ASP.NET Boilerplate ReactJS Template
50+
51+
* **Rashiduddin Yoldash** - *Initial work* - [ryoldash](https://github.com/ryoldash)
52+
* **Mehmet Yasir Aktunç** - *Initial work* - [mhmtyasr](https://github.com/mhmtyasr)
53+
* **Samet Kabay** - *Initial work* - [smtkby](https://github.com/smtkby)

reactjs/_screenshots/architecture.jpg

25.5 KB
Loading

reactjs/_screenshots/dashboard.png

103 KB
Loading

0 commit comments

Comments
 (0)