fix(config): update configuration scripts and package metadata

This commit is contained in:
buzz-lightsnack-2007 2025-04-06 14:06:04 +08:00
parent 4d33185a8e
commit 0902ec9cb2
3 changed files with 45 additions and 8 deletions

4
.gitignore vendored
View file

@ -1,2 +1,4 @@
.env
node_modules
node_modules
.idx/.data/
.idx/*.log*

33
.idx/dev.nix Normal file
View file

@ -0,0 +1,33 @@
{ pkgs, ... }: {
channel = "stable-23.11";
packages = [
pkgs.nodejs_20
];
services.mongodb = {
enable = true;
};
idx = {
extensions = [
"mongodb.mongodb-vscode"
];
workspace = {
onCreate = {
npm-install = "npm install";
default.openFiles = [
"server.js" "database.js" "README.md"
];
};
onStart = {
start-database = "mongod --port 27017 --fork --logpath ./.idx/database.log --dbpath ./.idx/.data";
run-server = "node server.js";
};
};
previews = {
};
};
}

View file

@ -1,18 +1,20 @@
{
"name": "fcc-exercise-tracker",
"name": "exercise-tracker",
"version": "0.1.0",
"description": "A REST API project, part of Free Code Camp's curriculum",
"description": "A simple exercise tracker based on the FCC curriculum",
"main": "index.js",
"scripts": {
"start": "node index.js"
"start": "node --watch index.js"
},
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.16.4",
"cors": "^2.8.5"
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"mongoose": "^5.11.15"
},
"repository": {
"url": "https://github.com/freeCodeCamp/boilerplate-project-exercisetracker"
"url": "https://codeberg.org/buzzcode2007/FCC-Project_Exercise-Tracker"
},
"license": "MIT",
"keywords": [