@nuxtus/nuxtus 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -18,16 +18,35 @@ It also includes [nuxtus/cli]("https://github.com/nuxtus/cli") which provides a
18
18
 
19
19
  ```bash
20
20
  $ npx create-nuxtus app-name
21
- $ cd app-name
22
21
  ```
23
22
 
24
23
  > Replace `app-name` with the name of your website or application.
25
24
 
26
- Your project will contain 2 folders server (Directus) and client (Nuxt). Run them as normal from within each folder:
25
+ Nuxtus will automatically start Directus and Nuxt in development mode if you are using SQLite. Otherwise follow the directions below to manually configure your database and get started.
26
+
27
+ Your project will contain 2 folders server (Directus) and client (Nuxt).
28
+
29
+ ### Directus
30
+
31
+ By default Nuxtus uses an SQLite database. If you wish to use an alternative database simply edit the `server/.env` file as suggested in the [Directus documentation](https://docs.directus.io/configuration/config-options/#database) then follow the steps below.
27
32
 
28
33
  ```bash
29
- ~/server $ npx directus start
30
- ~/client $ npm run dev
34
+ $ cd server
35
+
36
+ # From within the root of the project
37
+ $ npm run cli bootstrap
38
+ ```
39
+
40
+ ### Nuxt
41
+
42
+ No set up for Nuxt is required.
43
+
44
+ ### Starting Nuxtus
45
+
46
+ From inside your project folder:
47
+
48
+ ```bash
49
+ $ npm start
31
50
  ```
32
51
 
33
52
  ### Creating pages
@@ -35,7 +54,7 @@ Your project will contain 2 folders server (Directus) and client (Nuxt). Run the
35
54
  Nuxtus includes Nuxtus CLI which will automatically generate listing and view pages of any Directus collections. To use it:
36
55
 
37
56
  1. Log in to Directus ([http://0.0.0.0:8055/admin/login](http://0.0.0.0:8055/admin/login)) and [create a collection](https://docs.directus.io/configuration/data-model/#creating-a-collection)
38
- 2. From the client folder `cd client` run `nuxtus create` and follow the prompts
57
+ 2. From the client folder (`cd client`) run `nuxtus create` and follow the prompts
39
58
 
40
59
  Pages will be created for each collection you select in `clients/pages`. These are a starting point for you to customise.
41
60
 
@@ -47,23 +66,7 @@ By default Directus is configured to accept CORS from any origin. Nuxtus suggest
47
66
 
48
67
  ## Manual setup
49
68
 
50
- Clone this repo onto your local machine, remove the remote git origin and add a new one.
51
-
52
- ### Server (Directus) Setup
53
-
54
- ```bash
55
- $ cd server
56
- $ npm i
57
- $ npx directus start
58
- ```
59
-
60
- ### Client (Nuxt) Setup
61
-
62
- ```bash
63
- $ cd client
64
- $ npm i
65
- $ npm run dev
66
- ```
69
+ Clone this repo onto your local machine, remove the remote git origin and add a new one. Then follow the [manual install instructions](#directus).
67
70
 
68
71
  > For further instructions visit `[http://localhost:3000](http://localhost:3000)`
69
72
 
package/TODO CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
2
  Todo:
3
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)
4
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)
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
11
+ ✔ Check node version for compatibility in create-app.js @done(22-06-16 22:07)
12
+ ☐ Look at https://renovatebot.com/
13
+ ☐ Documentation: https://docusaurus.io/ or https://vuepress.vuejs.org/
14
+ ☐ Look into using a Directus hook to automatically generate the Nuxt pages!
package/changelog.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Nuxtus
2
2
 
3
+ ## 1.0.4
4
+
5
+ - Hard delete the data.db file
6
+ - Update @nuxtus-cli to 1.0.2
7
+ - Update Nuxt to 3.0.0-rc.4
8
+ - Add client, server and start npm scripts
9
+
10
+ ## 1.0.3
11
+
12
+ - Add Directus CLI to package.json so `npm run cli` works
13
+ - Update getting started instructions to include database migrations
14
+ - Do not upload the sqlite database, create a new one
15
+ - Add default user/password to Directus .env
16
+ - Add @nuxtus/cli to dev dependencies
17
+ - Update `pages/docs.vue` with details on using @nuxtus/cli
18
+
3
19
  ## 1.0.2
4
20
 
5
21
  - Separate create-nuxt command
package/client/.env CHANGED
@@ -3,5 +3,5 @@ DIRECTUS_URL=http://localhost:8055
3
3
  # Nuxtus values
4
4
  # For now using email and password as nuxt-directus does not support token auth
5
5
  # NUXT_PUBLIC_DIRECTUS_TOKEN=UNSECURE_ACCESS_TOKEN
6
- NUXT_PUBLIC_DIRECTUS_EMAIL=admin@test.com
6
+ NUXT_PUBLIC_DIRECTUS_EMAIL=admin@example.com
7
7
  NUXT_PUBLIC_DIRECTUS_PASSWORD=password
@@ -9,11 +9,12 @@
9
9
  "devDependencies": {
10
10
  "@nuxtjs/google-fonts": "^1.3.0",
11
11
  "@nuxtjs/tailwindcss": "^5.0.4",
12
- "nuxt": "3.0.0-rc.1"
12
+ "nuxt": "3.0.0-rc.4",
13
+ "@nuxtus/cli": "^1.0.2"
13
14
  },
14
15
  "dependencies": {
15
16
  "@headlessui/vue": "^1.6.1",
16
17
  "@heroicons/vue": "^1.0.6",
17
- "nuxt-directus": "^2.0.1"
18
+ "nuxt-directus": "^2.1.0"
18
19
  }
19
20
  }
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.0.2",
4
+ "version": "1.0.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/nuxtus/nuxtus.git"
@@ -22,5 +22,13 @@
22
22
  "publishConfig": {
23
23
  "access": "public",
24
24
  "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "scripts": {
27
+ "client": "cd client && npm run dev",
28
+ "server": "cd server && npx directus start",
29
+ "start": "concurrently \"npm run client\" \"npm run server\""
30
+ },
31
+ "devDependencies": {
32
+ "concurrently": "^7.2.2"
25
33
  }
26
- }
34
+ }
package/server/.env CHANGED
@@ -64,3 +64,8 @@ EMAIL_FROM="no-reply@craigharman.com"
64
64
  EMAIL_TRANSPORT="sendmail"
65
65
  EMAIL_SENDMAIL_NEW_LINE="unix"
66
66
  EMAIL_SENDMAIL_PATH="/usr/sbin/sendmail"
67
+
68
+ ####################################################################################################
69
+ ## Default User
70
+ ADMIN_EMAIL="admin@example.com"
71
+ ADMIN_PASSWORD="password"
@@ -4,6 +4,7 @@
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
+ "cli": "directus",
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
8
9
  },
9
10
  "keywords": [],
package/server/data.db DELETED
Binary file