diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..59a43b2 --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +NODE_ENV=development +PORT=3000 +MONGODB_URI=mongodb://localhost:27017/analytics +ROOT_KEY=your-secret-root-key-here +EVENT_TTL_DAYS=90 diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 1fe7b78..38518e1 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,4 +1,4 @@ -name: Docs +name: Build on: [push] @@ -7,22 +7,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Use Node.js 12.x - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - name: Use Node.js 24.x + uses: actions/setup-node@v4 with: - node-version: 12.x - - name: Typedoc & Redoc + node-version: 24.x + cache: 'npm' + - name: Install & Build run: | npm ci - npm run docs + npm run build env: CI: true - - name: Deploy - if: success() - uses: crazy-max/ghaction-github-pages@v1 - with: - target_branch: gh-pages - build_dir: docs - env: - GITHUB_PAT: ${{ secrets.GITHUB_PAT }} + ROOT_KEY: ci-build-key diff --git a/.gitignore b/.gitignore index 7041e0e..4e03be1 100644 --- a/.gitignore +++ b/.gitignore @@ -118,4 +118,5 @@ temp/ # End of https://www.gitignore.io/api/node,code build -docs \ No newline at end of file +docs +client/dist \ No newline at end of file diff --git a/client/index.html b/client/index.html new file mode 100644 index 0000000..59af4e4 --- /dev/null +++ b/client/index.html @@ -0,0 +1,12 @@ + + +
+ + +
+ {JSON.stringify(data, null, 2)}
+
+
+ {JSON.stringify(data, null, 2)}
+
+ Used to load projects from the API.
+