Skip to content

Commit

Permalink
Innitialized Npm and add some basic scripts and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Armoghan-ul-Mohmin committed Oct 20, 2024
1 parent 8092495 commit d7f422f
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down Expand Up @@ -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": {
Expand Down
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit d7f422f

Please sign in to comment.