-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5412a25
commit 60e036e
Showing
11 changed files
with
218 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
NODE_ENV = "developement", | ||
MONGO_URI = mongodb+srv://kieranomahony98:[email protected]/CineGuestion?w=majority?retryWrites=true, | ||
SECRET_OR_KEY = "bAKVdqczerYAYKdMxsaBzbFUJU6ZvL2LwZuxhtpS", | ||
TMDB3= d61cca13e8ffa8187cbf047d7bca9ffb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import mongoose, { Schema } from 'mongoose'; | ||
|
||
|
||
const Trending = new Schema({ | ||
movieGenerationDate: { | ||
type: String, | ||
required: true, | ||
}, | ||
movieSearchCriteria: { | ||
sort_by: { | ||
type: String, | ||
required: false, | ||
}, | ||
with_genres: { | ||
type: String, | ||
required: false, | ||
}, | ||
primary_release_year: { | ||
type: String, | ||
required: false, | ||
}, | ||
with_keywords: { | ||
type: String, | ||
required: false | ||
} | ||
}, | ||
movies: | ||
[ | ||
{ | ||
movieId: { | ||
type: Number, | ||
required: true, | ||
}, | ||
movieTitle: { | ||
type: String, | ||
required: true, | ||
}, | ||
movieImagePath: { | ||
type: String, | ||
required: true | ||
}, | ||
movieDescription: { | ||
type: String, | ||
required: true, | ||
}, | ||
movieReleaseYear: { | ||
type: String, | ||
required: false, | ||
}, | ||
movieGenres: { | ||
type: String, | ||
required: true, | ||
}, | ||
moviePopularity: { | ||
type: String, | ||
required: false, | ||
}, | ||
|
||
}, | ||
], | ||
}); | ||
|
||
export default mongoose.model("trending", Trending); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# How to run this Application: | ||
|
||
1. Install NodeJs on your computer. https://nodejs.org/en/ the LTS version will suffice. | ||
2. Navigate to the root level of this project within your terminal and run command `npm i`. This is to install project dependencies. | ||
3. run command `npm run local` This will start the automation side of the application. | ||
|
||
This part of the application runs on scheduled functions, if you look in the terminal you will see a sample function getting executed every second. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.