mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
64 lines
2.2 KiB
JSON
64 lines
2.2 KiB
JSON
{
|
|
"name": "ohtuilmo-backend",
|
|
"version": "1.0.0",
|
|
"description": "Node.js backend",
|
|
"keywords": [
|
|
"node"
|
|
],
|
|
"homepage": "https://github.com/ohtuprojekti-ilmo/ohtuilmo-backend#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/ohtuprojekti-ilmo/ohtuilmo-backend/issues"
|
|
},
|
|
"license": "MIT",
|
|
"author": "jexniemi",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ohtuprojekti-ilmo/ohtuilmo-backend.git"
|
|
},
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"watch": "cross-env NODE_ENV=development nodemon index.js",
|
|
"watch:test": "cross-env NODE_ENV=test nodemon index.js",
|
|
"start": "cross-env NODE_ENV=production node index.js",
|
|
"test": "jest --runInBand",
|
|
"test:local": "DATABASE_URL=postgres://postgres:postgres@localhost:6543/test_postgres SECRET=testsecret EMAIL_ENABLED=false NODE_ENV=test npm run test",
|
|
"test-setup": "docker compose -f ../compose.local-test.yaml --profile local-api up -d --force-recreate",
|
|
"test-setup:down": "docker compose -f ../compose.local-test.yaml --profile local-api down",
|
|
"test:docker": "docker compose -f ../compose.local-test.yaml down && docker compose -f ../compose.local-test.yaml --profile api up --exit-code-from api-test",
|
|
"lint": "oxlint .",
|
|
"lint:fix": "oxlint --fix .",
|
|
"format": "oxfmt .",
|
|
"format:check": "oxfmt --check .",
|
|
"db:create": "sequelize db:create",
|
|
"db:drop": "sequelize db:drop",
|
|
"db:migrate": "sequelize db:migrate",
|
|
"db:seed:all": "sequelize db:seed:all",
|
|
"db:nuke": "npm run db:drop && npm run db:create",
|
|
"db:recreate": "npm run db:nuke && npm run db:migrate && npm run db:seed:all"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.19.0",
|
|
"cors": "^2.8.6",
|
|
"dotenv": "^17.4.2",
|
|
"express": "^5.2.1",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"nodemailer": "^9.0.4",
|
|
"pg": "^8.22.0",
|
|
"pg-hstore": "^2.3.4",
|
|
"sequelize": "^6.37.8",
|
|
"sequelize-cli": "^6.6.5",
|
|
"unfuck-utf8-headers-middleware": "^1.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"cross-env": "^10.1.0",
|
|
"jest": "^30.4.2",
|
|
"nodemon": "^3.1.14",
|
|
"oxfmt": "^0.62.0",
|
|
"oxlint": "^1.77.0",
|
|
"supertest": "^7.2.2"
|
|
},
|
|
"engines": {
|
|
"node": "24"
|
|
}
|
|
}
|