- NodeJS 8.4.0+
- TypeScript 2.4.2+ -
npm install -g typescript
- Angular CLI 1.3.1+ -
npm install -g @angular/cli
- Navigate to
server
folder and executenpm install
- Navigate to
web
folder and executenpm install
- You might need to
npm install -g typescript
andnpm install -g @angular/cli
in order to executetsc
andng
later
- Navigate to
server
folder and executetsc --pretty --watch
- Navigate to
web
folder and executeng build --sourcemaps --watch
- Open root folder (the one that contains
server
andweb
folders) in Visual Studio Code. You can use the following VS Codelaunch.json
in the root folder:
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Create DB",
"program": "${workspaceRoot}/server/index",
"outFiles": [
"${workspaceRoot}/out/**/*.js"
],
"args": [
"--create-storage",
"--app-administrator-password=123456"
]
},
{
"type": "node",
"request": "launch",
"name": "Normal start",
"program": "${workspaceRoot}/server/index",
"outFiles": [
"${workspaceRoot}/out/**/*.js"
]
}
]
}
- Press
F5
to start and debug the server application and open a browser to the url, specified inhost
andport
values inserver/config/app.json
(most likelyhttps://localhost
). Changing any file used by the server requires stop and restart the debugger.