You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run in a terminal `git clone https://github.com/binarystarter/binarystarter-angular.git`. To specify another folder name, you can do a direct `git clone https://github.com/binarystarter/binarystarter-angular.git <project_name>`.
Run in a terminal `git clone https://github.com/binarystarter/binarystarter-angular.git`. To specify another folder name, you can do a direct `git clone https://github.com/binarystarter/binarystarter-angular.git <project_name>`.
75
+
#### Start the apps
54
76
55
-
### Install modules
77
+
- Angular `nx serve web`
78
+
- Server `nx serve express`
56
79
57
-
Run `pnpm install`.
80
+
# Details
81
+
82
+
### 1. Angular
58
83
59
-
### Start the app
84
+
The angular app can be accessed using http://localhost:4200. All paths are considered server side rendered, except the child routes of `/c``https://example.com/c/**` which are part of the client app. (e.g. `/c/dashboard`). Of course this can be adjusted per your needs.
The Angular client-side app can be accessed at `http://localhost:4200/c/*`
62
87
63
-
#The app
88
+
### 2. ExpressJS API Server
64
89
65
-
### Angular
90
+
The express server is running by default on `localhost:8080`. This can be adjusted by updating the `.env` file
66
91
67
-
The angular app can be accessed using http://localhost:4200 - the Server Side Rendered app
68
-
The Angular client-side app can be accessed at HTTP://localhost:4200/app/... and HTTP://localhost:4200/auth/...
92
+
#### 2.1 Payload CMS
69
93
70
-
### Payload CMS
94
+
- 2.1.1 The payloadcms administration panel can be accessed at `http://localhost:8080/admin`
71
95
72
-
The payloadcms administration panel can be accessed at HTTP://localhost:8080/admin
96
+
- 2.1.2 The payloadcms API can be accessed at `http://localhost:8080/api`
73
97
74
-
###ExpressJS
98
+
#### 2.2 Express Custom Routes API
75
99
76
-
ExpressJS endpoints can be accessed from HTTP://localhost:8080/...
100
+
ExpressJs endpoints can be accessed from `http://localhost:8080`
77
101
78
-
# Out-of-the-box
102
+
# More Information
79
103
80
104
## Authentication and Authorization
81
105
82
106
The authentication system is based on Passport Js.
83
107
84
-
Out of the box you get the following pages in Angular, connected with the ExpressJs and Payload CMS.
108
+
You get the following pages in Angular, connected with the ExpressJs and Payload CMS.
85
109
86
110
## Angular SSR and Dashboard App
87
111
@@ -101,9 +125,9 @@ This problem is solved by using a mono repository.
101
125
102
126
Managed by nx.dev tools - now extending TypeScript types from the Backend or creating them from scratch can be done in a single shared library between your Angular app and ExpressJs Backend.
103
127
104
-
## ExpressJs Server integrated with Payload CMS out of the box
128
+
## ExpressJs Server integrated with Payload CMS
105
129
106
-
We get all the benefits of a monorepository out of the box.
130
+
We get all the benefits of a monorepository.
107
131
108
132
ExpressJs is tightly integrated with PayloadCMS, but you can still add your own routes, outside of Payload.
109
133
@@ -113,3 +137,12 @@ We believe in TypeScript, hence everything is based on TypeScript.
113
137
114
138
-[Twitter](https://twitter.com/florinmtsc)
115
139
-[Website](https://binarycentrum.com/)
140
+
141
+
# Resources
142
+
143
+
-[Intro to nx](https://nx.dev/getting-started/intro)
0 commit comments