From d7f422fcbee8f9efdd3ed0d35667933bd37a11bd Mon Sep 17 00:00:00 2001 From: Armoghan-ul-Mohmin Date: Sun, 20 Oct 2024 16:27:35 +0500 Subject: [PATCH] Innitialized Npm and add some basic scripts and config --- .devcontainer/devcontainer.json | 5 ++- package-lock.json | 19 +++++++++++ package.json | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c109e73..03ade30 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,6 +11,9 @@ // * Name of the development container "name": "JustiChain Development", + // ** Custom name for the container + "containerName": "JustiChain Development", + // ** Base Image "image": "mcr.microsoft.com/devcontainers/base:alpine", @@ -85,7 +88,7 @@ "remoteUser": "root", // ** Commands to run after the container is created - "postCreateCommand": "apk add --no-cache python3 py3-pip nodejs npm && npm install", + "postCreateCommand": "apk add --no-cache python3 py3-pip nodejs npm && npm install", // ** Environment variables for the container "environment": { diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..a818813 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,19 @@ +{ + "name": "justichain", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "justichain", + "version": "1.0.0", + "hasInstallScript": true, + "license": "MIT", + "engines": { + "node": ">=20.15.1", + "npm": ">=10.8.0", + "python": ">=3.12.7" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..b9239b0 --- /dev/null +++ b/package.json @@ -0,0 +1,58 @@ +{ + "name": "justichain", + "version": "1.0.0", + "description": "A secure web platform for anonymous crime reporting and tamper-proof evidence management, bridging trust between communities and law enforcement.", + "main": "app.py", + "private": true, + "scripts": { + "postinstall": "echo '๐Ÿ“ฆ Installing dependencies' pip install -r requirements.txt", + "start": "echo '๐Ÿš€ Starting Flask server' && flask run", + "dev": "echo '๐Ÿš€ Starting Flask development server' && flask run --debug --reload", + "audit": "echo '๐Ÿ” Running npm audit' && npm audit", + "audit:fix": "echo '๐Ÿ› ๏ธ Running npm audit and fixing issues' && npm audit --fix", + "update": "echo '๐Ÿ”„ Updating npm packages' && npm update", + "depcheck": "echo '๐Ÿง Checking for unused dependencies' && npx depcheck", + "cache-clean": "echo '๐Ÿงน Cleaning npm cache' && npm cache clean --force", + "rebuild-node-modules": "echo '๐Ÿ”จ Rebuilding node_modules' && rm -rf node_modules && npm install" + }, + "keywords": [ + "JustiChain", + "Crime Reporting", + "Evidence Management", + "Anonymous Reporting", + "Tamper-Proof Evidence", + "Cryptographic Hashing", + "Law Enforcement", + "Secure Platform", + "Justice" + ], + "browserslist": [ + ">0.1%", + "last 2 versions", + "not dead", + "IE 11", + "Edge >= 12", + "Firefox >= 28", + "Chrome >= 28", + "Safari >= 7", + "Opera >= 23", + "iOS >= 7", + "Android >= 4", + "not op_mini all" + ], + "engines": { + "node": ">=20.15.1", + "npm": ">=10.8.0", + "python": ">=3.12.7" + }, + "author": "Armoghan-ul-Mohmin", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/Armoghans-Organization/JustiChain.git" + }, + "bugs": { + "url": "https://github.com/Armoghans-Organization/JustiChain/issues" + }, + "homepage": "https://github.com/Armoghans-Organization/JustiChain#readme" +}