Skip to content

Commit 1a8a1e4

Browse files
Merge pull request #32 from DataSeer/dev
Dev
2 parents 6516bfb + 54123d7 commit 1a8a1e4

25 files changed

+12746
-6212
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// .eslintrc.js
1+
// File: .eslintrc.js
22
module.exports = {
33
env: {
44
node: true,

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit

.husky/post-tag

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
# Extract version from tag
5+
VERSION=$(git describe --tags --abbrev=0)
6+
# Remove 'v' prefix if present
7+
VERSION=${VERSION#v}
8+
9+
# Update package.json version
10+
npm version $VERSION --no-git-tag-version --allow-same-version
11+
12+
# Stage and commit package.json changes
13+
git add package.json
14+
git commit -m "chore: update package.json version to $VERSION" --no-verify

.versionrc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"types": [
3+
{ "type": "feat", "section": "Features" },
4+
{ "type": "fix", "section": "Bug Fixes" },
5+
{ "type": "docs", "section": "Documentation" },
6+
{ "type": "style", "section": "Styling" },
7+
{ "type": "refactor", "section": "Code Refactoring" },
8+
{ "type": "perf", "section": "Performance Improvements" },
9+
{ "type": "test", "section": "Tests" },
10+
{ "type": "build", "section": "Build System" },
11+
{ "type": "ci", "section": "Continuous Integration" },
12+
{ "type": "chore", "section": "Chores" }
13+
],
14+
"commitUrlFormat": "https://github.com/DataSeer/snapshot-api/commits/{{hash}}",
15+
"compareUrlFormat": "https://github.com/DataSeer/snapshot-api/compare/{{previousTag}}...{{currentTag}}",
16+
"releaseCommitMessageFormat": "chore(release): {{currentTag}}",
17+
"skip": {
18+
"bump": false,
19+
"changelog": false,
20+
"commit": false,
21+
"tag": false
22+
}
23+
}

CHANGELOG.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
## [2.0.0](https://github.com/DataSeer/snapshot-api/compare/v1.0.0...v2.0.0) (2025-01-15)
6+
7+
8+
### Features
9+
10+
* add script to manually sync the version ([013d2c4](https://github.com/DataSeer/snapshot-api/commits/013d2c433d33a263eeb5ab528b6871e3d65c2f50))
11+
* **api:** add version endpoint & version management in the app (logs) ([0908b28](https://github.com/DataSeer/snapshot-api/commits/0908b28765e6cb6bceda3ece087f2f500e4608b4))
12+
* update all dependencies ([c3e9004](https://github.com/DataSeer/snapshot-api/commits/c3e9004429640db3c499de6d87c1136e9bce9e4e))
13+
* update permissions for /versions API route ([1ecc20d](https://github.com/DataSeer/snapshot-api/commits/1ecc20d922da9672f26981961530cd000673d726))
14+
15+
16+
### Styling
17+
18+
* update first comment (file path) ([1c4e867](https://github.com/DataSeer/snapshot-api/commits/1c4e86783153b9c2885869c84b5a874b82ba82df))
19+
20+
21+
### Documentation
22+
23+
* add first version of changelog ([80bcb09](https://github.com/DataSeer/snapshot-api/commits/80bcb09aa1a043b2042c86059c2689ac9e184423))
24+
* fix first version of changelog ([36488a8](https://github.com/DataSeer/snapshot-api/commits/36488a8e8314fff6e49abac5173844a5ffa4e4f6))
25+
* update documentation ([0e71734](https://github.com/DataSeer/snapshot-api/commits/0e7173409087ce493ad4bf1db1985d357efa3a05))
26+
* update documentation ([4ef89bf](https://github.com/DataSeer/snapshot-api/commits/4ef89bf917ee6472327d7354d34129becd5dc602))
27+
28+
29+
### Chores
30+
31+
* **release:** 1.1.0 [skip ci] ([7798d4f](https://github.com/DataSeer/snapshot-api/commits/7798d4f8b07ccea2b4962a852e26ce47e41c9b21))
32+
33+
34+
### Continuous Integration
35+
36+
* add husky hooks & commit management files ([08b4270](https://github.com/DataSeer/snapshot-api/commits/08b427001aa5e9bd5d0f2fd2c38ab15866c174a2))
37+
* update release commit comment ([d705d5f](https://github.com/DataSeer/snapshot-api/commits/d705d5f05294b98f544013a081bf96b776cfcfb2))
38+
39+
## [1.0.0] - 2024-01-09
40+
41+
### Features
42+
- PDF document processing integration with GenShare API
43+
- JWT-based authentication system for all routes
44+
- Role-based access control with allow/block lists per route
45+
- User-specific rate limiting with configurable thresholds
46+
- AWS S3 integration for complete request traceability
47+
- Google Sheets integration for summary logging
48+
- Health monitoring for all dependent services (GenShare, GROBID, DataStet)
49+
- Comprehensive logging system with Winston and Morgan
50+
- Script-based user and permissions management
51+
52+
### Security
53+
- JWT authentication required for all routes
54+
- Route-specific access control through permissions system
55+
- Secure token storage and management
56+
- User-specific rate limiting to prevent abuse
57+
- Complete request traceability in S3 storage
58+
59+
### Added
60+
- Command-line tools for user management
61+
- Command-line tools for permission management
62+
- Log analysis utilities
63+
- Health check endpoints for all services
64+
- Automated S3 storage for all processing requests
65+
- Google Sheets integration for process tracking
66+
- Docker support with multi-stage builds
67+
- CI/CD workflows for development and production
68+
69+
### Documentation
70+
- Complete API documentation
71+
- Installation and configuration guides
72+
- Deployment instructions
73+
- Security considerations
74+
- Contributing guidelines
75+
- Script usage examples
76+
77+
[1.0.0]: https://github.com/DataSeer/snapshot-api/releases/tag/v1.0.0

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ COPY . .
1616

1717
# Copy default files if originals don't exist
1818
RUN if [ ! -f .env ]; then cp .env.default .env || true; fi && \
19-
if [ ! -f conf/users.json ]; then mkdir -p conf && cp conf/users.json.default conf/users.json || true; fi && \
20-
if [ ! -f conf/permissions.json ]; then mkdir -p conf && cp conf/permissions.json.default conf/permissions.json || true; fi && \
19+
if [ ! -f conf/aws.s3.json ]; then mkdir -p conf && cp conf/aws.s3.json.default conf/aws.s3.json || true; fi && \
2120
if [ ! -f conf/datastet.json ]; then mkdir -p conf && cp conf/datastet.json.default conf/datastet.json || true; fi && \
22-
if [ ! -f conf/grobid.json ]; then mkdir -p conf && cp conf/grobid.json.default conf/grobid.json || true; fi && \
2321
if [ ! -f conf/genshare.json ]; then mkdir -p conf && cp conf/genshare.json.default conf/genshare.json || true; fi && \
24-
if [ ! -f conf/aws.s3.json ]; then mkdir -p conf && cp conf/aws.s3.json.default conf/aws.s3.json || true; fi && \
22+
if [ ! -f conf/googleSheets.credentials.json ]; then mkdir -p conf && cp conf/googleSheets.credentials.json.default conf/googleSheets.credentials.json || true; fi && \
2523
if [ ! -f conf/googleSheets.json ]; then mkdir -p conf && cp conf/googleSheets.json.default conf/googleSheets.json || true; fi && \
26-
if [ ! -f conf/googleSheets.credentials.json ]; then mkdir -p conf && cp conf/googleSheets.credentials.json.default conf/googleSheets.credentials.json || true; fi
24+
if [ ! -f conf/grobid.json ]; then mkdir -p conf && cp conf/grobid.json.default conf/grobid.json || true; fi && \
25+
if [ ! -f conf/permissions.json ]; then mkdir -p conf && cp conf/permissions.json.default conf/permissions.json || true; fi && \
26+
if [ ! -f conf/users.json ]; then mkdir -p conf && cp conf/users.json.default conf/users.json || true; fi
2727

2828
# Expose the port your app runs on
2929
EXPOSE 3000

0 commit comments

Comments
 (0)