application that handles all endpoints of the proyect
- Install node and npm [https://phoenixnap.com/kb/install-node-js-npm-on-windows]
- Install dependencies: npm install
- configure database credentials access
Just use in terminal: npm run start
Start mysql
-
start mysql service on linux sudo service mysql start
-
access as super user sudo mysql -u root -p
-
write the password
si sale este error
Error: Access denied for user 'root'@'localhost'
solución
-- en "password" coloca su contraseña de mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
it runs all tests with coverage report
command: npm run test:cov
command: npm test relative file path
example: npm test routes/sum.test.js
Base de Datos: desplegada en Clever Cloud