Skip to content

NachoGassie/movies_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published