meadow-endpoints 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +16 -0
- package/package.json +2 -2
- package/test/MeadowEndpoints_basic_tests.js +1 -1
- package/test/MeadowEndpoints_disabledAuth_tests.js +1 -1
- package/test/MeadowEndpoints_trustedSession_tests.js +1 -1
- package/test/schemas/json_schema/BookStore-Extended.json +915 -0
- package/test/schemas/json_schema/BookStore-PICT.json +1 -0
- package/test/schemas/json_schema/BookStore.json +280 -0
- package/test/schemas/json_schema/README.md +1 -0
- package/test/schemas/meadow_schema/BookStore-MeadowSchema-Author.json +220 -0
- package/test/schemas/meadow_schema/BookStore-MeadowSchema-Book.json +268 -0
- package/test/schemas/meadow_schema/BookStore-MeadowSchema-BookAuthorJoin.json +172 -0
- package/test/schemas/meadow_schema/BookStore-MeadowSchema-BookPrice.json +260 -0
- package/test/schemas/meadow_schema/BookStore-MeadowSchema-Review.json +236 -0
- package/test/schemas/meadow_schema/README.md +1 -0
package/Dockerfile
CHANGED
|
@@ -8,9 +8,23 @@ VOLUME /home/coder/.vscode
|
|
|
8
8
|
RUN echo "...installing debian dependencies..."
|
|
9
9
|
RUN sudo apt update
|
|
10
10
|
RUN sudo apt install vim curl tmux -y
|
|
11
|
+
RUN sudo apt install default-mysql-server default-mysql-client -y
|
|
12
|
+
|
|
11
13
|
|
|
12
14
|
RUN echo "Building RETOLD development image..."
|
|
13
15
|
|
|
16
|
+
RUN echo "...configuring mariadb (mysql) server..."
|
|
17
|
+
RUN sudo sed -i "s|bind-address|#bind-address|g" /etc/mysql/mariadb.conf.d/50-server.cnf
|
|
18
|
+
ADD ./.config/luxury-extras/MySQL/MySQL-Security.sql /home/coder/MySQL-Configure-Security.sql
|
|
19
|
+
ADD ./.config/luxury-extras/MySQL/MySQL-Laden-Entry.sh /usr/bin/MySQL-Laden-Entry.sh
|
|
20
|
+
RUN ( sudo mysqld_safe --skip-grant-tables --skip-networking & ) && sleep 5 && mysql -u root < /home/coder/MySQL-Configure-Security.sql
|
|
21
|
+
|
|
22
|
+
# Import the initial database
|
|
23
|
+
COPY ./.config/luxury-extras/model/sql_create/BookStore-CreateDatabase.mysql.sql /home/coder/MySQL-Create-Databases.sql
|
|
24
|
+
RUN sudo service mariadb restart && sleep 5 && mysql -u root -p"123456789" -e "CREATE DATABASE bookstore;"
|
|
25
|
+
RUN sudo service mariadb restart && sleep 5 && mysql -u root -p"123456789" bookstore < /home/coder/MySQL-Create-Databases.sql
|
|
26
|
+
RUN sudo service mariadb restart && sleep 5 && mysql -u root -p"123456789" -e "CREATE DATABASE FableTest;"
|
|
27
|
+
|
|
14
28
|
|
|
15
29
|
RUN echo "...mapping library specific volumes..."
|
|
16
30
|
# Volume mappings for RETOLD:Meadow Endpoints library
|
|
@@ -30,3 +44,5 @@ RUN . ~/.nvm/nvm.sh && source ~/.bashrc && nvm install 14
|
|
|
30
44
|
RUN . ~/.nvm/nvm.sh && source ~/.bashrc && nvm alias default 14
|
|
31
45
|
|
|
32
46
|
WORKDIR /home/coder/meadow-endpoints
|
|
47
|
+
|
|
48
|
+
ENTRYPOINT ["/usr/bin/MySQL-Laden-Entry.sh"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meadow-endpoints",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Automatic API endpoints for Meadow data.",
|
|
5
5
|
"main": "source/Meadow-Endpoints.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"coverage": "nyc npm run test && nyc report --reporter=lcov",
|
|
9
9
|
"test": "./node_modules/.bin/mocha --exit -u tdd -R spec",
|
|
10
10
|
"docker-dev-build-image": "docker build ./ -t retold/meadow-endpoints:local",
|
|
11
|
-
"docker-dev-run": "docker run -it -d --name meadow-endpoints-dev -p 127.0.0.1:12343:8080 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/meadow-endpoints\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" retold/meadow-endpoints:local"
|
|
11
|
+
"docker-dev-run": "docker run -it -d --name meadow-endpoints-dev -p 127.0.0.1:12343:8080 -p 12305:3306 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/meadow-endpoints\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" retold/meadow-endpoints:local"
|
|
12
12
|
},
|
|
13
13
|
"mocha": {
|
|
14
14
|
"diff": true,
|
|
@@ -33,7 +33,7 @@ var tmpFableSettings = (
|
|
|
33
33
|
Server: "localhost",
|
|
34
34
|
Port: 3306,
|
|
35
35
|
User: process.env.DEV_MYSQL_USER || "root",
|
|
36
|
-
Password: process.env.DEV_MYSQL_PASS || "",
|
|
36
|
+
Password: process.env.DEV_MYSQL_PASS || "123456789",
|
|
37
37
|
Database: "FableTest",
|
|
38
38
|
ConnectionPoolLimit: 20
|
|
39
39
|
},
|
|
@@ -30,7 +30,7 @@ let tmpFableSettings = (
|
|
|
30
30
|
Server: 'localhost',
|
|
31
31
|
Port: 3306,
|
|
32
32
|
User: process.env.DEV_MYSQL_USER || 'root',
|
|
33
|
-
Password: process.env.DEV_MYSQL_PASS || '',
|
|
33
|
+
Password: process.env.DEV_MYSQL_PASS || '123456789',
|
|
34
34
|
Database: 'FableTest',
|
|
35
35
|
ConnectionPoolLimit: 20
|
|
36
36
|
},
|
|
@@ -34,7 +34,7 @@ let tmpFableSettings = (
|
|
|
34
34
|
Server: 'localhost',
|
|
35
35
|
Port: 3306,
|
|
36
36
|
User: process.env.DEV_MYSQL_USER || 'root',
|
|
37
|
-
Password: process.env.DEV_MYSQL_PASS || '',
|
|
37
|
+
Password: process.env.DEV_MYSQL_PASS || '123456789',
|
|
38
38
|
Database: 'FableTest',
|
|
39
39
|
ConnectionPoolLimit: 20
|
|
40
40
|
},
|