You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@
5
5
Writing code and developing in this application requires running three services:
6
6
7
7
- A local Microsoft SQL Server (2019 Linux) database running in Docker
8
-
- The server-side Node.js application written in TypeScript: `/src/api`
9
-
- The Vue.js and Vuetify based front-end: `/src/web`
8
+
- The server-side Node.js application written in TypeScript: `/api`
9
+
- The Vue.js and Vuetify based front-end: `/web`
10
10
11
11
---
12
12
@@ -65,7 +65,7 @@ cd /opt/mssql-tools/bin
65
65
You will now have a local database with data ready for the API. To run the API, run the following commands:
66
66
67
67
```
68
-
cd src/api
68
+
cd api
69
69
npm install
70
70
cp .env .env.development
71
71
```
@@ -81,17 +81,17 @@ The API will bind to your local machines port 3000 and be available at http://lo
81
81
Last to start is the the Vue.js web front-end. To run this, open a second terminal window at this directory and run the following commands:
82
82
83
83
```
84
-
cd src/web
84
+
cd web
85
85
npm install
86
86
npm run start
87
87
```
88
88
89
-
You will now have the Vue CLI server hosting the application at http://localhost:8080 and you can begin editing the API or front-end code. **All changes to the files in the `src/api` and `src/web` will automatically reload theie respective applications.**
89
+
You will now have the Vue CLI server hosting the application at http://localhost:8080 and you can begin editing the API or front-end code. **All changes to the files in the `api` and `web` will automatically reload theie respective applications.**
90
90
91
91
## Local Testing
92
92
93
93
Currently there is very minimal support for testing.
94
-
Only `src/api` has a test suite.
94
+
Only `api` has a test suite.
95
95
**The development and test databases are shared, so don't write tests that change database state yet.**
96
96
97
97
To boot the test suite go to the top level of the app and run:
@@ -103,7 +103,7 @@ bin/dev test up
103
103
docker-compose -f docker-cmpose.test.yml up
104
104
105
105
# or if you don't have docker
106
-
cd src/api
106
+
cd api
107
107
npm install
108
108
npm run test
109
109
```
@@ -157,8 +157,8 @@ the appropriate environment variables set using the following commands:
157
157
1. Set the environment variables for the back-end.
0 commit comments