Skip to content

Commit 6cb9d13

Browse files
Merge pull request #31 from DataSeer/add_version
Add version
2 parents 1b29c2a + 2345491 commit 6cb9d13

23 files changed

+12633
-6161
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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.0.0] - 2024-01-09
9+
10+
### Features
11+
- PDF document processing integration with GenShare API
12+
- JWT-based authentication system for all routes
13+
- Role-based access control with allow/block lists per route
14+
- User-specific rate limiting with configurable thresholds
15+
- AWS S3 integration for complete request traceability
16+
- Google Sheets integration for summary logging
17+
- Health monitoring for all dependent services (GenShare, GROBID, DataStet)
18+
- Comprehensive logging system with Winston and Morgan
19+
- Script-based user and permissions management
20+
21+
### Security
22+
- JWT authentication required for all routes
23+
- Route-specific access control through permissions system
24+
- Secure token storage and management
25+
- User-specific rate limiting to prevent abuse
26+
- Complete request traceability in S3 storage
27+
28+
### Added
29+
- Command-line tools for user management
30+
- Command-line tools for permission management
31+
- Log analysis utilities
32+
- Health check endpoints for all services
33+
- Automated S3 storage for all processing requests
34+
- Google Sheets integration for process tracking
35+
- Docker support with multi-stage builds
36+
- CI/CD workflows for development and production
37+
38+
### Documentation
39+
- Complete API documentation
40+
- Installation and configuration guides
41+
- Deployment instructions
42+
- Security considerations
43+
- Contributing guidelines
44+
- Script usage examples
45+
46+
[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)