Config:
- Have a local postgres docker container running on default port (5432).
- It should have default username "postgres" and password "docker".
- It will have the database "express_cp" where the data will be stored.
Build seed db:
- run
npx knex migration:latest
- run
npx knex seed:run
User Stories:
-
As a client application consuming your api application, I want to be able to receive a list of movies from the database, so that I can list them on my interface.
-
As a client application consuming your application, I want to be able to search by title for movies from the database, so that I can list them on my interface.
-
As a client consuming application, I want to be able to receive an individual movie record from the database, so that I can display its data on my interface.
-
As a client consuming application, I want to be able to send a new movie record to the database, so that it can be available for my future use.
-
As a client consuming application, I want to be able to delete a movie record from the database, so that it is no longer an entry in the list of movies.