---
# System prepended metadata

title: Portal info
tags: [Work]

---

---
tags: Work
---

# Portal info

## Portal Server

- Step 1: download node
donwload url: https://nodejs.org/en/download/
donwload progress:https://www.guru99.com/download-install-node-js.html

- Step 2: clone PortalServer from github
```bash=
git clone https://github.com/Jasmine-fe/PortalServer.git
```

- Step 3: install package
```bash=
npm install
```

- Step 4: connect to DataBase
DataBase 目前的連線資訊 ( ormconfig.json )
```javascript=
{
    "type": "mysql",
    "host": "192.168.137.183",
    "username": "kitty",
    "password": "pink",
    "port": "3306",
    "database": "gamedb",
    "timeout": 15000,
    "connectTimeout": 15000,
    "acquireTimeout": 15000,
    "entities": [
        "./src/entities/*.ts"
    ]
}

```

- Step 5: get lastest version
```bash=
git pull origin master
```

- Step 6: run 
```bash=
npm run start
```


----

## Portal client

- Step 1: download node
donwload url: https://nodejs.org/en/download/
donwload progress:https://www.guru99.com/download-install-node-js.html

- Step 2: clone client from github
```bash=
git clone https://github.com/Jasmine-fe/client.git
```

- Step 3: install package
```bash=
npm install
```

- Step 4: get lastest version
```bash=
git pull origin master
```

- Step 5: run 
```bash=
ng serve 
or 
npm run start
```
