Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 700 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 700 Bytes

This a Movies Api developed in ExpressJs

To test it out you have to:

1- Import the file from mySqlDb/db_peliculas.sql into a mySql Database.
2- Run "npm run dev" on your console
3- To login you can use email: [email protected] - password: contraseña

It can be used with PostgreSql as well

1- Once the database is set, you set the pool in db/postgreSql/pool/postgreSql.pool.ts
2- Then in the services you change the used db, there are comments to help

// MySql moviesDb : dbFactory.mySqlDb.movies;
// Pg moviesDb : dbFactory.pgDb.movies;

const moviesDb = dbFactory.pgDb.movies;

All you have to do is set the value of the constant based on the database you want to use.