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
{{ message }}
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+34-29Lines changed: 34 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
+
# DEPRECATED - JAN 16, 2024 - see https://topcoder.atlassian.net/browse/CORE-208
2
+
1
3
# Skills API
2
4
3
-
*[Prerequisites](#prerequisites)
4
-
*[Configuration](#configuration)
5
-
*[Local deployment](#local-deployment)
6
-
*[Migrations](#migrations)
7
-
*[Local Deployment with Docker](#local-deployment-with-docker)
8
-
*[NPM Commands](#npm-commands)
9
-
*[JWT Authentication](#jwt-authentication)
10
-
*[Documentation](#documentation)
5
+
-[Prerequisites](#prerequisites)
6
+
-[Configuration](#configuration)
7
+
-[Local deployment](#local-deployment)
8
+
-[Migrations](#migrations)
9
+
-[Local Deployment with Docker](#local-deployment-with-docker)
10
+
-[NPM Commands](#npm-commands)
11
+
-[JWT Authentication](#jwt-authentication)
12
+
-[Documentation](#documentation)
11
13
12
14
## Prerequisites
13
15
@@ -59,6 +61,7 @@ Configuration for the application is at `config/default.js` and `config/producti
59
61
**NOTE** AUTH0 related configuration normally is shared on challenge forum.
60
62
61
63
## DB and Elasticsearch In Docker
64
+
62
65
- Navigate to the directory `docker-pgsql-es` folder. Rename `sample.env` to `.env` and change any values if required.
63
66
- Run `docker-compose up -d` to have docker instances of pgsql and elasticsearch to use with the api
64
67
@@ -69,8 +72,8 @@ Notice the `--volumes` argument is passed to the `docker-compose down` command t
69
72
70
73
Setup your Postgresql DB and Elasticsearch instance and ensure that they are up and running.
71
74
72
-
- Follow *Configuration* section to update config values, like database, ES host etc ..
73
-
- Goto *skills-api*, run `npm i`
75
+
- Follow _Configuration_ section to update config values, like database, ES host etc ..
76
+
- Goto _skills-api_, run `npm i`
74
77
- Create database using `npm run create-db`.
75
78
- Run the migrations - `npm run migrations up`. This will create the tables.
76
79
- Then run `npm run insert-data` and insert mock data into the database.
@@ -82,6 +85,7 @@ Setup your Postgresql DB and Elasticsearch instance and ensure that they are up
82
85
Migrations are located under the `./scripts/db/` folder. Run `npm run migrations up` and `npm run migrations down` to execute the migrations or remove the earlier ones
83
86
84
87
## Local Deployment with Docker
88
+
85
89
Setup your Postgresql DB and Elasticsearch instance and ensure that they are up and running.
86
90
87
91
- Configure AUTH0 related parameters via ENV variables. Note that normally you don't need to change other configuration.
@@ -98,32 +102,33 @@ Setup your Postgresql DB and Elasticsearch instance and ensure that they are up
98
102
99
103
- Once that is done, run the following command
100
104
101
-
```bash
102
-
docker-compose up
103
-
```
105
+
```bash
106
+
docker-compose up
107
+
```
104
108
105
109
- When you are running the application for the first time, It will take some time initially to download the image and install the dependencies
0 commit comments