Skip to content

Commit a148c66

Browse files
committed
Merge branch 'stage' of github.com:contentstack/migration-v2-node-server into stage
2 parents 4afb805 + 0827cc9 commit a148c66

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ Check for readme.md files and install dependencies for folders
3333
npm install
3434
```
3535

36+
4. go to cli folder
37+
1. Install pnpm
38+
Since pnpm is required, you need to install it globally if it's not already installed:
39+
```
40+
npm install -g pnpm
41+
```
42+
2. Run the Setup Script
43+
Now, run the main setup script specified in the package.json:
44+
```
45+
npm run setup-repo
46+
```
47+
3648
## Scripts
3749
- `npm start`: Starts the main server by running index.js.
3850
- `npm run api`: Navigates to the api directory and runs the development server.

api/README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22

33
This is the migration V2's node server.
44

5-
## To start the server
6-
7-
1. Run `npm i`
8-
2. Install and start MongoDB
9-
10-
### To start MongoDB
11-
12-
1. Install MongoDB on your system.
13-
2. Start the MongoDB service.
14-
3. Verify that MongoDB is running by opening a command prompt and running the command `mongo --version`.
15-
165
## Environment Variables
176
The following environment variables are used in this project:
187

@@ -24,3 +13,7 @@ Make sure to set these variables in a `.env` file at the root of your project.
2413
1. To run the development server, create a `./development.env` file and add environment variables as per `./example.env`
2514
2. To run the production server, create a `./production.env` file and add environment variables as per `./example.env`
2615

16+
## To start the server
17+
18+
1. Run `npm i`
19+

upload-api/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npm install
1818
The following environment variables are used in this project:
1919

2020
- `PORT`: The port number on which the application runs. Default is `4002`.
21-
- `NODE_BACKEND_API`: The backend API endpoint. Default is `http://localhost:5000`.
21+
- `NODE_BACKEND_API`: The backend API endpoint. Default is `http://localhost:5001`.
2222

2323
Make sure to set these variables in a `.env` file at the root of your project.
2424

@@ -39,7 +39,7 @@ The following configuration is used in this project:
3939
- `buketKey`: The key for the AWS S3 bucket. Default is `project/package 45.zip`.
4040

4141
### Local Path
42-
- `localPath`: The local path to the extracted files. for example is `/upload-api/extracted_files/package 45.zip`.
42+
- `localPath`: The local path to the extracted files. for example `/upload-api/extracted_files/package 45.zip`.
4343

4444
## Repository
4545
- Type: git

0 commit comments

Comments
 (0)