Clarification on how to setup the Bank server API and the Bank App server (#416)

This commit is contained in:
nsoseka 2021-09-17 18:47:52 +01:00 коммит произвёл GitHub
Родитель 665f6890aa
Коммит 559ca23ef7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -14,6 +14,13 @@ In this part we'll use HTML forms to add login and registration to our web app.
You need to have completed the [HTML templates and routing](../1-template-route/README.md) of the web app for this lesson. You also need to install [Node.js](https://nodejs.org) and [run the server API](../api/README.md) locally so you can send data to create accounts.
**Take note**
You will have two terminals running at the same time as listed below.
1. For the the main bank app we built in the [HTML templates and routing](../1-template-route/README.md) lesson
2. For the [Bank APP server API](../api/README.md) we just setup above.
You need two of the servers up and running to follow through with the rest of the lesson. They are listening on different ports(port `3000` and port `5000`) so everything should work just fine.
You can test that the server is running properly by executing this command in a terminal:
```sh

Просмотреть файл

@ -12,11 +12,13 @@ You can also take a look at this interactive tutorial: https://aka.ms/learn/expr
Make sure you have [Node.js](https://nodejs.org) installed.
1. Git clone this repo.
2. Open a terminal in `api` folder, then run `npm install`.
3. Run `npm start`.
1. Git clone this repo [The Web-Dev-For-Beginners](https://github.com/microsoft/Web-Dev-For-Beginners).
2. Open your terminal and navigate into the `Web-Dev-For-Beginners/7-bank-project/api` folder
2. Run `npm install` and wait for the packages to be installed(could take a while depending on the quality of your internet connection).
3. When the installation is over, run `npm start` and you are good to go.
The server should start listening on port `5000`.
*This server will be running together with the main bank app server terminal(listening on port `3000`), do not close it.*
> Note: all entries are stored in-memory and are not persisted, so when the server is stopped all data is lost.