Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 800028d

Browse files
author
Arpitkumar Chaudhari
committed
Checkout page and Stripe integration
1 parent 67b1fef commit 800028d

File tree

29 files changed

+1217
-84
lines changed

29 files changed

+1217
-84
lines changed

README.md

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ TaaS App is done using Single SPA micro-frontend architecture https://single-spa
6464
### Local Authentication
6565

6666
First of all, to authenticate locally we have to run a local authentication service.
67+
6768
- Clone this repository into `taas-app`.
6869
- Inside the folder `taas-app/local/login-locally` run `npm run start`.
6970
- You would need npm 5+ for it. This would start a local sever on port 5000 which could be used for local Authentication.
@@ -76,36 +77,36 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
7677

7778
1. Run **Frame** App:
7879

79-
```sh
80-
git clone https://github.com/topcoder-platform/micro-frontends-frame.git
81-
cd micro-frontends-frame
82-
# inside folder "micro-frontends-frame" run:
80+
```sh
81+
git clone https://github.com/topcoder-platform/micro-frontends-frame.git
82+
cd micro-frontends-frame
83+
# inside folder "micro-frontends-frame" run:
8384

84-
nvm use # or make sure to use Node 10
85-
npm i # to install dependencies
85+
nvm use # or make sure to use Node 10
86+
npm i # to install dependencies
8687

87-
# set environment variables:
88+
# set environment variables:
8889

89-
export APPMODE="development"
90-
export APPENV="local-multi"
90+
export APPMODE="development"
91+
export APPENV="local-multi"
9192

92-
npm run local-server
93+
npm run local-server
9394

94-
# this would start frame server on http://localhost:3000
95-
```
95+
# this would start frame server on http://localhost:3000
96+
```
9697

97-
open one more terminal window in the same folder and run:
98+
open one more terminal window in the same folder and run:
9899

99-
```sh
100-
# set environment variables:
100+
```sh
101+
# set environment variables:
101102

102-
export APPMODE="development"
103-
export APPENV="local-multi"
103+
export APPMODE="development"
104+
export APPENV="local-multi"
104105

105-
npm run local-client
106+
npm run local-client
106107

107-
# this host frame client code on http://localhost:8080
108-
```
108+
# this host frame client code on http://localhost:8080
109+
```
109110

110111
2. Run **Navbar** micro-app:
111112

@@ -135,23 +136,27 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
135136
nvm use # or make sure to use Node 10
136137
npm i # to install dependencies
137138

139+
# set environment variables:
140+
141+
export STRIPE_PUBLIC_KEY=""
142+
138143
npm run dev
139144

140145
# this host TaaS App as http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js
141146
```
142147

143148
4. Now we have to update the `micro-frontends-frame` app to show our local version of TaaS App, instead of remote one. Update file `micro-frontends-frame/config/micro-frontends-config-local.json`:
144149

145-
```js
146-
// replace line
147-
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
150+
```js
151+
// replace line
152+
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
148153

149-
// with line:
150-
"@topcoder/micro-frontends-teams": "http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js",
151-
```
154+
// with line:
155+
"@topcoder/micro-frontends-teams": "http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js",
156+
```
152157

153158
- Now open in the browser http://localhost:8080/taas/myteams.
154159
- If you are not logged-in yet, you should be redirected to the login page.
155160
- If you cannot see the application and redirect doesn't happen, make sure that file "http://local.topcoder-dev.com:8501/taas-app/topcoder-micro-frontends-teams.js" is loaded successfully in the Network tab.
156161

157-
Congratulations, you successfully run the project. If you had some issue, please, try to go through README of https://github.com/topcoder-platform/micro-frontends-frame and https://github.com/topcoder-platform/micro-frontends-navbar-app.
162+
Congratulations, you successfully run the project. If you had some issue, please, try to go through README of https://github.com/topcoder-platform/micro-frontends-frame and https://github.com/topcoder-platform/micro-frontends-navbar-app.

0 commit comments

Comments
 (0)