| description | School Project: Votar (JavaScript: Express) |
| owner | ansi25.a2ncu@slmail.me |
| last change | Mon, 20 Oct 2025 02:29:15 +0000 (19 23:29 -0300) |
| URL | git://repo.or.cz/isfd166-ansi-edi2-votar-express.git |
| https://repo.or.cz/isfd166-ansi-edi2-votar-express.git | |
| push URL | ssh://repo.or.cz/isfd166-ansi-edi2-votar-express.git |
| https://repo.or.cz/isfd166-ansi-edi2-votar-express.git (learn more) | |
| bundle info | isfd166-ansi-edi2-votar-express.git downloadable bundles |
| content tags |
Implementation of the Votar OpenAPI Description using Express.
To ensure optimal performance and functionality, the following Node.js and NPM versions are required:
You can use nvm to install them, or use the following command if you're using Debian:
sudo apt install nodejs
Verify the installed versions using the following commands:
node -v
npm -v
Install the application's dependencies using npm:
npm install
To run the application, execute the following command:
node restapi.js
To make things easier while you code, you can use the next command to restart the server automatically when you make changes. This uses something called npm scripts and a tool called nodemon. Nodemon watches for changes and restarts the server for you.
npm run dev
Inside the sqlite directory, run the following command to create the database from the SQL file.
sqlite3 -bail votar.db < votar.sql
| 6 weeks ago | node | logtree |
| 6 weeks ago | master | logtree |
| 6 weeks ago | deno | logtree |