@nuxtus/nuxtus 1.3.1 → 1.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  Changelog
2
2
 
3
+ # [1.4.0](https://github.com/nuxtus/nuxtus/compare/v1.3.1...v1.4.0) (2022-08-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * :sparkles: add liquid templates ([4564a69](https://github.com/nuxtus/nuxtus/commit/4564a6983b420353e16147d39b68d909734e8113))
9
+ * :sparkles: docs removed in favor of website ([59611ef](https://github.com/nuxtus/nuxtus/commit/59611efdfff2595fefcb7da3f80cfea53678b282))
10
+ * :sparkles: new default starting page ([07e8dee](https://github.com/nuxtus/nuxtus/commit/07e8dee1475248cc329571c2f32eb9ab5382c579))
11
+
3
12
  ## [1.3.1](https://github.com/nuxtus/nuxtus/compare/v1.3.0...v1.3.1) (2022-08-17)
4
13
 
5
14
 
package/TODO CHANGED
@@ -1,38 +1,42 @@
1
1
 
2
2
  Todo:
3
- ☐ Handle fetch failures
4
- ✔ Update docs.vue to use nuxtus-cli instead @done(22-06-12 20:57)
5
- ✔ Fix code for singleton page in .vue template @done(22-06-13 19:06)
6
- ✔ Make a CLI for creating index/listing pages for Directus API @done(22-06-10 20:42)
7
- ✔ Set up [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) @done(22-06-16 20:23)
8
- ✔ Setup [semantic release](https://github.com/semantic-release/semantic-release) @done(22-07-11 15:57)
9
- ✔ Add interactive/pretty CLI for create-app.js @done(22-06-16 20:23)
10
- ✔ Query database use (via interactive shell) in create-app.js @done(22-06-21 20:26)
11
- ✔ Check node version for compatibility in create-app.js @done(22-06-16 22:07)
12
3
  ☐ Look at https://renovatebot.com/
13
- ✔ Documentation: https://docusaurus.io/ or https://vuepress.vuejs.org/ @done(22-08-11 16:24)
14
- ✔ Create Directus flow via Directus API @done(22-07-04 17:46)
15
- ☐ Add ability to automatically update .env for none SQLite databases
16
- ☐ Can I HMR when adding new pages/routes? - https://github.com/nuxt/framework/issues/5766 - awaiting rc.7
17
- ✔ Add all questions in create-app to start of process for better user flow @done(22-07-13 19:15)
18
- ✔ Allow use of different ports/URLs for Directus and Nuxt (currently hard-coded) @done(22-07-13 20:42)
19
- ✔ Add "types" to cli to update types from Directus when not using hook - use @directus/sdk for /oas now on all apps @done(22-07-18 17:01)
20
4
  ☐ Make opening browser window on start optional using npm run start (not possible)
21
- ✔ Look at moving login and server/api stuff to a Nuxt module @done(22-07-28 19:37)
22
- ✔ Make sure separate packages can be used without Nuxt Boilerplate if required @done(22-07-28 19:37)
23
- ✔ Console.log messages from directus extension should be formatted like other directus messages @done(22-07-19 20:46)
24
- ✔ Add default Directus login to end of create-nuxtus script @done(22-07-19 17:30)
25
5
  ☐ When adding a new collection the new page triggers a nuxt restart then directus tries to send a field.create which fails. We get around this by getting the create field first but Directus still returns a 404 for the second request.
26
- ✔ interfaces/nuxtus.ts should not be in .gitignore other than during my development (remove in create-nuxtus?) @done(22-07-11 12:52)
27
- ✔ Add test coverage (done: generator, nuxtus-cli) @started(22-07-11 17:19) @done(22-07-14 08:03) @lasted(2d14h44m55s)
28
6
  ☐ GraphQL?
29
7
  ☐ Websockets (https://github.com/br41nslug/directus-websocket-subscribe)
30
- ✔ Upgrade nuxt-directus @done(22-07-17 11:32)
31
8
  ☐ Add ability to use Directus static token instead of login (requires nuxt-directus v2.3.0) - UPDATE DOCS cli.md too!
32
9
  ☐ Get added to some nuxt/directus lists etc.
33
- ☐ Directus and Nuxt project names in package.json based on project create name.
34
- ☐ Add Directus and Nuxt URL to create-nuxtus script
35
- ☐ Create a new package.json instead of using nuxtus one (remove all semantic release packages)
36
10
  ☐ Remove Google Fonts module (replace with fonts.bunny.net?)
37
- ☐ Use directus install scripts (then copy hook) instead of npm install - this will sort out DB automatically!
38
11
  ☐ Nuxtus website should actually pull data from Directus!
12
+ ☐ Look into nx for running as monorepo instead of concurrent
13
+ ☐ Add Nuxtus logo to index.vue page
14
+
15
+ Archive:
16
+ ✔ Handle fetch failures @done(22-08-18 18:06) @project(Todo)
17
+ ✔ Update docs.vue to use nuxtus-cli instead @done(22-06-12 20:57) @project(Todo)
18
+ ✔ Fix code for singleton page in .vue template @done(22-06-13 19:06) @project(Todo)
19
+ ✔ Make a CLI for creating index/listing pages for Directus API @done(22-06-10 20:42) @project(Todo)
20
+ ✔ Set up [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) @done(22-06-16 20:23) @project(Todo)
21
+ ✔ Setup [semantic release](https://github.com/semantic-release/semantic-release) @done(22-07-11 15:57) @project(Todo)
22
+ ✔ Add interactive/pretty CLI for create-app.js @done(22-06-16 20:23) @project(Todo)
23
+ ✔ Query database use (via interactive shell) in create-app.js @done(22-06-21 20:26) @project(Todo)
24
+ ✔ Check node version for compatibility in create-app.js @done(22-06-16 22:07) @project(Todo)
25
+ ✔ Documentation: https://docusaurus.io/ or https://vuepress.vuejs.org/ @done(22-08-11 16:24) @project(Todo)
26
+ ✔ Create Directus flow via Directus API @done(22-07-04 17:46) @project(Todo)
27
+ ✔ Add ability to automatically update .env for none SQLite databases @done(22-08-23 21:00) @project(Todo)
28
+ ✔ Can I HMR when adding new pages/routes? - https://github.com/nuxt/framework/issues/5766 - awaiting rc.7 @done(22-08-18 08:05) @project(Todo)
29
+ ✔ Add all questions in create-app to start of process for better user flow @done(22-07-13 19:15) @project(Todo)
30
+ ✔ Allow use of different ports/URLs for Directus and Nuxt (currently hard-coded) @done(22-07-13 20:42) @project(Todo)
31
+ ✔ Add "types" to cli to update types from Directus when not using hook - use @directus/sdk for /oas now on all apps @done(22-07-18 17:01) @project(Todo)
32
+ ✔ Look at moving login and server/api stuff to a Nuxt module @done(22-07-28 19:37) @project(Todo)
33
+ ✔ Make sure separate packages can be used without Nuxt Boilerplate if required @done(22-07-28 19:37) @project(Todo)
34
+ ✔ Console.log messages from directus extension should be formatted like other directus messages @done(22-07-19 20:46) @project(Todo)
35
+ ✔ Add default Directus login to end of create-nuxtus script @done(22-07-19 17:30) @project(Todo)
36
+ ✔ interfaces/nuxtus.ts should not be in .gitignore other than during my development (remove in create-nuxtus?) @done(22-07-11 12:52) @project(Todo)
37
+ ✔ Add test coverage (done: generator, nuxtus-cli) @started(22-07-11 17:19) @done(22-07-14 08:03) @lasted(2d14h44m55s) @project(Todo)
38
+ ✔ Upgrade nuxt-directus @done(22-07-17 11:32) @project(Todo)
39
+ ✔ Directus and Nuxt project names in package.json based on project create name. @done(22-08-21 20:38) @project(Todo)
40
+ ✔ Add Directus and Nuxt URL to create-nuxtus script @done(22-08-20 12:12) @project(Todo)
41
+ ✔ Create a new package.json instead of using nuxtus one (remove all semantic release packages) @done(22-08-23 21:00) @project(Todo)
42
+ ✔ Use directus install scripts (then copy hook) instead of npm install - this will sort out DB automatically! @done(22-08-18 18:07) @project(Todo)
@@ -17,12 +17,9 @@ export default defineNuxtConfig({
17
17
  Inter: true,
18
18
  },
19
19
  },
20
- build: {
21
- transpile: ['@heroicons/vue']
22
- },
23
20
  tailwindcss: {
24
21
  // Options
25
- jit: true,
22
+ // jit: true,
26
23
  },
27
24
  directus: {},
28
25
  nuxtus: {
@@ -14,8 +14,6 @@
14
14
  "nuxt": "^3.0.0-rc.8"
15
15
  },
16
16
  "dependencies": {
17
- "@headlessui/vue": "^1.6.1",
18
- "@heroicons/vue": "^1.0.6",
19
17
  "nuxt-directus": "^2.3.0"
20
18
  }
21
19
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtus/nuxtus",
3
3
  "description": "Directus/Nuxt boilerplate with Tailwind CSS.",
4
- "version": "1.3.1",
4
+ "version": "1.4.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/nuxtus/nuxtus.git"
@@ -34,7 +34,7 @@
34
34
  "@semantic-release/github": "^8.0.5",
35
35
  "@semantic-release/release-notes-generator": "^10.0.3",
36
36
  "concurrently": "^7.2.2",
37
- "semantic-release": "^19.0.3"
37
+ "semantic-release": "^19.0.5"
38
38
  },
39
39
  "release": {
40
40
  "branches": "main",
@@ -11,7 +11,6 @@
11
11
  "author": "",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "directus": "^9.15.1",
15
- "sqlite3": "^5.0.8"
14
+ "directus": "^9.15.1"
16
15
  }
17
16
  }
@@ -0,0 +1,326 @@
1
+ ####################################################################################################
2
+ #
3
+ # These values set environment variables which modify core settings of Directus.
4
+ #
5
+ # Values in square brackets are the default values.
6
+ #
7
+ # The following options are not all possible options. For more, see
8
+ # https://docs.directus.io/self-hosted/config-options/
9
+ #
10
+ ####################################################################################################
11
+ ####################################################################################################
12
+
13
+ ### General
14
+
15
+ # IP or host the API listens on ["0.0.0.0"]
16
+ HOST="0.0.0.0"
17
+
18
+ # The port Directus will run on [8055]
19
+ PORT=8055
20
+
21
+ # The URL where your API can be reached on the web. It is also used for things like OAuth redirects,
22
+ # forgot-password emails, and logos that needs to be publicly available on the internet. ["/"]
23
+ PUBLIC_URL="/"
24
+ # PUBLIC_URL="http://localhost:8055"
25
+
26
+ # What level of detail to log. [info]
27
+ # "fatal", "error", "warn", "info", "debug", "trace", "silent"
28
+ # LOG_LEVEL="info"
29
+
30
+ # Render the logs human readable (pretty) or as JSON (raw), [pretty]
31
+ # "pretty", "raw"
32
+ # LOG_STYLE="pretty"
33
+
34
+ # Controls the maximum request body size. Accepts number of bytes, or human readable string ["100kb"]
35
+ # MAX_PAYLOAD_SIZE="100kb"
36
+
37
+ # Where to redirect to when navigating to /. Accepts a relative path, absolute URL, or false to disable ["./admin"]
38
+ # ROOT_REDIRECT="./admin"
39
+
40
+ # Whether or not to serve the Admin App under /admin. [true]
41
+ # SERVE_APP=true
42
+
43
+ # Whether or not to enable GraphQL Introspection [true]
44
+ # GRAPHQL_INTROSPECTION=true
45
+
46
+ ####################################################################################################
47
+ ### Database
48
+
49
+ # All DB_* environment variables are passed to the connection configuration of a Knex instance.
50
+ # Based on your project's needs, you can extend the DB_* environment variables with any config
51
+ # you need to pass to the database instance.
52
+
53
+ {{ database }}
54
+
55
+
56
+ # These match the databases defined in the docker-compose file in the root of this repo
57
+
58
+ ## Postgres
59
+ # DB_CLIENT="pg"
60
+ # DB_HOST="localhost"
61
+ # DB_PORT=5432
62
+ # DB_DATABASE="directus"
63
+ # DB_USER="postgres"
64
+ # DB_PASSWORD="secret"
65
+
66
+ ## CockroachDB
67
+ # DB_CLIENT="cockroachdb"
68
+ # DB_HOST="localhost"
69
+ # DB_PORT=26257
70
+ # DB_DATABASE="directus"
71
+ # DB_USER="root"
72
+ # DB_PASSWORD=""
73
+
74
+ ## MySQL 8
75
+ # DB_CLIENT="mysql"
76
+ # DB_HOST="localhost"
77
+ # DB_PORT=3306
78
+ # DB_DATABASE="directus"
79
+ # DB_USER="root"
80
+ # DB_PASSWORD="secret"
81
+
82
+ ## MariaDB
83
+ # DB_CLIENT="mysql"
84
+ # DB_HOST="localhost"
85
+ # DB_PORT=3306
86
+ # DB_DATABASE="directus"
87
+ # DB_USER="root"
88
+ # DB_PASSWORD="secret"
89
+
90
+ ## MS SQL
91
+ # DB_CLIENT="mssql"
92
+ # DB_HOST="localhost"
93
+ # DB_PORT=1343
94
+ # DB_DATABASE="directus"
95
+ # DB_USER="sa"
96
+ # DB_PASSWORD="Test@123"
97
+
98
+ ## OracleDB
99
+ # DB_CLIENT="oracledb"
100
+ # DB_CONNECT_STRING="localhost:1521/XE"
101
+ # DB_USER="secretsysuser"
102
+ # DB_PASSWORD="secretpassword"
103
+
104
+ ## SQLite Example
105
+ # DB_CLIENT="sqlite3"
106
+ # DB_FILENAME="./data.db"
107
+
108
+ ## MySQL 5.7
109
+ # DB_CLIENT="mysql"
110
+ # DB_HOST="localhost"
111
+ # DB_PORT=3306
112
+ # DB_DATABASE="directus"
113
+ # DB_USER="root"
114
+ # DB_PASSWORD="secret"
115
+
116
+ ####################################################################################################
117
+ ### Rate Limiting
118
+
119
+ # Whether or not to enable rate limiting on the API [false]
120
+ RATE_LIMITER_ENABLED=false
121
+
122
+ # Where to store the rate limiter counts [memory]
123
+ # memory, redis, memcache
124
+ RATE_LIMITER_STORE=memory
125
+ # RATE_LIMITER_REDIS="redis://@127.0.0.1:5105"
126
+ # RATE_LIMITER_MEMCACHE="localhost:5109"
127
+
128
+ # The amount of allowed hits per duration [50]
129
+ RATE_LIMITER_POINTS=25
130
+
131
+ # The time window in seconds in which the hits are counted [1]
132
+ RATE_LIMITER_DURATION=1
133
+
134
+ ####################################################################################################
135
+ ### Caching
136
+
137
+ # Whether or not caching is enabled. [false]
138
+ CACHE_ENABLED=false
139
+
140
+ # How long the cache is persisted ["5m"]
141
+ # CACHE_TTL="30m"
142
+
143
+ # How to scope the cache data ["directus-cache"]
144
+ # CACHE_NAMESPACE="directus-cache"
145
+
146
+ # Automatically purge the cache on create, update, and delete actions. [false]
147
+ # CACHE_AUTO_PURGE=true
148
+
149
+ # memory | redis | memcache
150
+ CACHE_STORE=memory
151
+
152
+ # How long assets will be cached for in the browser. Sets the max-age value of the Cache-Control header ["30m"]
153
+ ASSETS_CACHE_TTL="30m"
154
+
155
+ # CACHE_REDIS="redis://@127.0.0.1:5105"
156
+ # CACHE_MEMCACHE="localhost:5109"
157
+
158
+ ####################################################################################################
159
+ ### File Storage
160
+
161
+ # A CSV of storage locations (eg: local,digitalocean,amazon) to use. You can use any names you'd like for these keys ["local"]
162
+ STORAGE_LOCATIONS="local"
163
+ STORAGE_LOCAL_DRIVER="local"
164
+ STORAGE_LOCAL_ROOT="./uploads"
165
+
166
+ ## S3 Example (location name: DigitalOcean)
167
+ # STORAGE_DIGITALOCEAN_DRIVER="s3"
168
+ # STORAGE_DIGITALOCEAN_KEY="abcdef"
169
+ # STORAGE_DIGITALOCEAN_SECRET="ghijkl"
170
+ # STORAGE_DIGITALOCEAN_ENDPOINT="ams3.digitaloceanspaces.com"
171
+ # STORAGE_DIGITALOCEAN_BUCKET="my-files"
172
+ # STORAGE_DIGITALOCEAN_REGION="ams3"
173
+
174
+ ## Google Cloud Storage Example (location name: Google)
175
+ # STORAGE_GOOGLE_DRIVER="gcs"
176
+ # STORAGE_GOOGLE_KEY_FILENAME="abcdef"
177
+ # STORAGE_GOOGLE_BUCKET="my-files"
178
+
179
+
180
+ ## A comma-separated list of metadata keys to collect during file upload. Use * for all
181
+ # Extracting all metadata might cause memory issues when the file has an unusually large set of metadata
182
+ # [ifd0.Make,ifd0.Model,exif.FNumber,exif.ExposureTime,exif.FocalLength,exif.ISO]
183
+ # FILE_METADATA_ALLOW_LIST=
184
+
185
+ ####################################################################################################
186
+ ### Security
187
+
188
+ {{ security }}
189
+
190
+ # Unique identifier for the project
191
+ # KEY="xxxxxxx-xxxxxx-xxxxxxxx-xxxxxxxxxx"
192
+
193
+ # Secret string for the project
194
+ # SECRET="abcdef"
195
+
196
+ # The duration that the access token is valid ["15m"]
197
+ ACCESS_TOKEN_TTL="15m"
198
+
199
+ # The duration that the refresh token is valid, and also how long users stay logged-in to the App ["7d"]
200
+ REFRESH_TOKEN_TTL="7d"
201
+
202
+ # Whether or not to use a secure cookie for the refresh token in cookie mode [false]
203
+ REFRESH_TOKEN_COOKIE_SECURE=false
204
+
205
+ # Value for sameSite in the refresh token cookie when in cookie mode ["lax"]
206
+ REFRESH_TOKEN_COOKIE_SAME_SITE="lax"
207
+
208
+ # Name of refresh token cookie ["directus_refresh_token"]
209
+ REFRESH_TOKEN_COOKIE_NAME="directus_refresh_token"
210
+
211
+ # Which domain to use for the refresh cookie. Useful for development mode.
212
+ # REFRESH_TOKEN_COOKIE_DOMAIN
213
+
214
+ # Whether or not to enable the CORS headers [false]
215
+ CORS_ENABLED=true
216
+
217
+ # Value for the Access-Control-Allow-Origin header. Use true to match the Origin header, or provide a domain or a CSV of domains for specific access [false]
218
+ CORS_ORIGIN=true
219
+
220
+ # Value for the Access-Control-Allow-Methods header [GET,POST,PATCH,DELETE]
221
+ CORS_METHODS=GET,POST,PATCH,DELETE
222
+
223
+ # Value for the Access-Control-Allow-Headers header [Content-Type,Authorization]
224
+ CORS_ALLOWED_HEADERS=Content-Type,Authorization
225
+
226
+ # Value for the Access-Control-Expose-Headers header [Content-R
227
+ CORS_EXPOSED_HEADERS=Content-Range
228
+
229
+ # Whether or not to send the Access-Control-Allow-Credentials header [true]
230
+ CORS_CREDENTIALS=true
231
+
232
+ # Value for the Access-Control-Max-Age header [18000]
233
+ CORS_MAX_AGE=18000
234
+
235
+ ####################################################################################################
236
+ ### Argon2
237
+
238
+ # How much memory to use when generating hashes, in KiB [4096]
239
+ # HASH_MEMORY_COST=81920
240
+
241
+ # The length of the hash function output in bytes [32]
242
+ # HASH_HASH_LENGTH=32
243
+
244
+ # The amount of passes (iterations) used by the hash function. It increases hash strength at the cost of time required to compute [3]
245
+ # HASH_TIME_COST=10
246
+
247
+ # The amount of threads to compute the hash on. Each thread has a memory pool with HASH_MEMORY_COST size [1]
248
+ # HASH_PARALLELISM=2
249
+
250
+ # The variant of the hash function (0: argon2d, 1: argon2i, or 2: argon2id) [1]
251
+ # HASH_TYPE=2
252
+
253
+ # An extra and optional non-secret value. The value will be included B64 encoded in the parameters portion of the digest []
254
+ # HASH_ASSOCIATED_DATA=foo
255
+
256
+ ####################################################################################################
257
+ ### Auth Providers
258
+
259
+ # A comma-separated list of auth providers []
260
+ AUTH_PROVIDERS=""
261
+ # AUTH_PROVIDERS="github"
262
+
263
+ # AUTH_GITHUB_DRIVER="oauth2"
264
+ # AUTH_GITHUB_CLIENT_ID="73e...4b"
265
+ # AUTH_GITHUB_CLIENT_SECRET="b9...98"
266
+ # AUTH_GITHUB_AUTHORIZE_URL="https://github.com/login/oauth/authorize"
267
+ # AUTH_GITHUB_ACCESS_URL="https://github.com/login/oauth/access_token"
268
+ # AUTH_GITHUB_PROFILE_URL="https://api.github.com/user"
269
+ # AUTH_GITHUB_ALLOW_PUBLIC_REGISTRATION=true
270
+ # AUTH_GITHUB_DEFAULT_ROLE_ID="82424427-c9d4-4289-8bc5-ed1bf8422c90"
271
+ # AUTH_GITHUB_ICON="github"
272
+ # AUTH_GITHUB_EMAIL_KEY="email"
273
+ # AUTH_GITHUB_IDENTIFIER_KEY="login"
274
+
275
+ ####################################################################################################
276
+ ### Extensions
277
+
278
+ # Path to your local extensions folder ["./extensions"]
279
+ EXTENSIONS_PATH="./extensions"
280
+
281
+ # Automatically reload extensions when they have changed [false]
282
+ EXTENSIONS_AUTO_RELOAD=false
283
+
284
+ ####################################################################################################
285
+ ### Email
286
+
287
+ # Email address from which emails are sent ["no-reply@directus.io"]
288
+ EMAIL_FROM="no-reply@directus.io"
289
+
290
+ # What to use to send emails. One of
291
+ # sendmail, smtp, mailgun, ses.
292
+ EMAIL_TRANSPORT="sendmail"
293
+ EMAIL_SENDMAIL_NEW_LINE="unix"
294
+ EMAIL_SENDMAIL_PATH="/usr/sbin/sendmail"
295
+
296
+ ## Email (Sendmail Transport)
297
+
298
+ # What new line style to use in sendmail ["unix"]
299
+ EMAIL_SENDMAIL_NEW_LINE="unix"
300
+
301
+ # Path to your sendmail executable ["/usr/sbin/sendmail"]
302
+ EMAIL_SENDMAIL_PATH="/usr/sbin/sendmail"
303
+
304
+ ## Email (SMTP Transport)
305
+ # EMAIL_SMTP_HOST="localhost"
306
+
307
+ # Use SMTP pooling
308
+ # EMAIL_SMTP_POOL=true
309
+ # EMAIL_SMTP_PORT=465
310
+ # EMAIL_SMTP_SECURE=false # Use TLS
311
+ # EMAIL_SMTP_IGNORE_TLS=false
312
+ # EMAIL_SMTP_USER="username"
313
+ # EMAIL_SMTP_PASSWORD="password"
314
+
315
+ ## Email (Mailgun Transport)
316
+ # EMAIL_MAILGUN_API_KEY="key-1234123412341234"
317
+ # EMAIL_MAILGUN_DOMAIN="a domain name from https://app.mailgun.com/app/sending/domains"
318
+
319
+ ####################################################################################################
320
+ ## Default User
321
+ ADMIN_EMAIL="admin@example.com"
322
+ ADMIN_PASSWORD="password"
323
+
324
+ ####################################################################################################
325
+ ## NUXT SERVER
326
+ NUXT_SERVER="http://localhost:3000"
@@ -0,0 +1,6 @@
1
+ npm-debug.log
2
+ node_modules
3
+ .DS_Store
4
+ server/uploads/*
5
+ .vscode
6
+ server/data.db
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "{{ appName }}",
3
+ "description": "",
4
+ "version": "0.0.1",
5
+ "keywords": [
6
+ "Directus",
7
+ "Nuxt",
8
+ "Nuxtus",
9
+ "Tailwind",
10
+ "Tailwindcss"
11
+ ],
12
+ "scripts": {
13
+ "client": "cd client && npm run dev -- -o",
14
+ "server": "cd server && npx directus start",
15
+ "start": "concurrently \"npm run client\" \"npm run server\""
16
+ },
17
+ "devDependencies": {
18
+ "concurrently": "^7.2.2"
19
+ }
20
+ }
package/server/.env DELETED
@@ -1,75 +0,0 @@
1
- ####################################################################################################
2
- ## General
3
-
4
- HOST="0.0.0.0"
5
- PORT=8055
6
- PUBLIC_URL="/"
7
- CORS_ENABLED=true
8
- CORS_ORIGIN=true
9
-
10
- ####################################################################################################
11
- ## Database
12
-
13
- DB_CLIENT="sqlite3"
14
- DB_FILENAME="./data.db"
15
-
16
-
17
- ####################################################################################################
18
- ## Rate Limiting
19
-
20
- RATE_LIMITER_ENABLED=false
21
- RATE_LIMITER_STORE=memory
22
- RATE_LIMITER_POINTS=25
23
- RATE_LIMITER_DURATION=1
24
-
25
- ####################################################################################################
26
- ## Cache
27
-
28
- CACHE_ENABLED=false
29
-
30
- ####################################################################################################
31
- ## File Storage
32
-
33
- STORAGE_LOCATIONS="local"
34
- STORAGE_LOCAL_DRIVER="local"
35
- STORAGE_LOCAL_ROOT="./uploads"
36
-
37
- ####################################################################################################
38
- ## Security
39
-
40
- KEY="3339424d-bc49-44dc-ac6c-5eed140f7b4d"
41
- SECRET="-3fcEkSym7BkfA5eLBOLb4EbMLpNF79E"
42
-
43
-
44
- ACCESS_TOKEN_TTL="15m"
45
- REFRESH_TOKEN_TTL="7d"
46
- REFRESH_TOKEN_COOKIE_SECURE=false
47
- REFRESH_TOKEN_COOKIE_SAME_SITE="lax"
48
- REFRESH_TOKEN_COOKIE_NAME="directus_refresh_token"
49
-
50
- ####################################################################################################
51
- ## Auth Providers
52
-
53
- AUTH_PROVIDERS=""
54
-
55
- ####################################################################################################
56
- ## Extensions
57
-
58
- EXTENSIONS_PATH="./extensions"
59
-
60
- ####################################################################################################
61
- ## Email
62
-
63
- EMAIL_FROM="no-reply@craigharman.com"
64
- EMAIL_TRANSPORT="sendmail"
65
- EMAIL_SENDMAIL_NEW_LINE="unix"
66
- EMAIL_SENDMAIL_PATH="/usr/sbin/sendmail"
67
-
68
- ####################################################################################################
69
- ## Default User
70
- ADMIN_EMAIL="admin@example.com"
71
- ADMIN_PASSWORD="password"
72
-
73
- ####################################################################################################
74
- ## NUXT SERVER
75
- NUXT_SERVER="http://localhost:3000"