Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions aayushman_t/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files.associations": {
"iostream": "cpp",
"fstream": "cpp",
"ostream": "cpp",
"limits": "cpp"
}
}
39 changes: 39 additions & 0 deletions aayushman_t/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build C++",
"type": "shell",
"command": "g++",
"args": [
"src/*.cpp",
"-o",
"netflix_cli"
],
"group": "build"
},
{
"type": "cppbuild",
"label": "C/C++: g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
]
}
40 changes: 40 additions & 0 deletions aayushman_t/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Use Ubuntu 22.04 as the base image for building (it includes g++ and supports C++17)
FROM ubuntu:22.04 AS builder

# Install g++ and other build essentials
RUN apt-get update && apt-get install -y \
g++ \
&& rm -rf /var/lib/apt/lists/*

# Set the working directory inside the container
WORKDIR /app

# Copy all source files and the data directory into the container
COPY main.cpp movies.cpp tvShows.cpp ./
COPY data/ ./data/

# Compile the C++ program with C++17 standard
RUN g++ -std=c++17 main.cpp -o netflix_clone

# Use a smaller runtime image for the final stage
FROM ubuntu:22.04

# Install runtime dependencies (minimal)
RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

# Set the working directory
WORKDIR /app

# Copy the compiled binary and data directory from the builder stage
COPY --from=builder /app/netflix_clone .
COPY --from=builder /app/data ./data/

# Ensure the data directory is writable
RUN chmod -R 777 /app/data

# Define a volume for the data directory to persist data
VOLUME /app/data

# Set the entrypoint to run the application
CMD ["./netflix_clone"]
Binary file added aayushman_t/a.out
Binary file not shown.
50 changes: 50 additions & 0 deletions aayushman_t/data/Tvshows.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Starbound Chronicles|Sci-Fi|8.4|5|10|3.99|14.99|0|0
City of Shadows|Thriller|7.8|3|12|4.49|12.99|0|0
Laughing Lofts|Comedy|7.5|6|20|3.49|11.99|0|0
Hearts of Valor|Drama|8.2|4|15|4.29|13.99|0|0
Mystic Realms|Fantasy|8.0|2|8|4.99|15.99|0|0
Urban Legends|Crime|7.6|5|13|4.19|13.49|0|0
Ghostly Tales|Horror|6.8|3|10|3.29|10.99|0|0
Family Ties|Comedy|7.9|7|22|3.79|12.49|0|0
Galactic Pioneers|Sci-Fi|8.7|4|12|4.79|16.99|0|0
Dark Horizons|Thriller|7.4|2|14|4.39|12.99|0|0
Echoes of Fate|Drama|8.5|6|16|4.59|14.49|0|0
Loves Journey|Romance|7.7|3|18|3.89|13.29|0|0
Hidden Kingdoms|Fantasy|8.1|5|10|4.69|15.49|0|0
Street Justice|Crime|7.3|4|15|4.29|13.79|0|0
Cursed Shadows|Horror|6.9|2|8|3.39|11.49|0|0
Chuckle Haven|Comedy|7.6|8|24|3.69|12.29|0|0
Nebula Quest|Sci-Fi|8.3|3|11|4.89|16.49|0|0
Night Watch|Thriller|7.5|4|13|4.49|13.99|0|0
Tides of Time|Drama|8.0|5|14|4.09|14.19|0|0
Forever Bound|Romance|7.8|2|16|3.99|12.99|0|0
Secret Plans|Crime|7.2|3|12|4.19|13.19|0|0
Wild Frontiers|Adventure|7.9|4|10|4.99|15.79|0|0
Haunted Echoes|Horror|6.7|2|9|3.49|11.29|0|0
Giggle Street|Comedy|7.4|6|20|3.79|12.59|0|0
Cosmic Travelers|Sci-Fi|8.6|5|12|4.99|17.99|0|0
Silent Betrayal|Thriller|7.7|3|15|4.39|13.49|0|0
Broken Bonds|Drama|8.1|4|17|4.29|14.29|0|0
Starlit Hearts|Romance|7.6|2|14|3.89|12.79|0|0
Dragons Legacy|Fantasy|8.3|6|10|4.79|16.29|0|0
True Detectives|Crime|7.5|5|13|4.49|13.99|0|0
Grim Whispers|Horror|6.6|3|8|3.29|11.19|0|0
Laugh Lounge|Comedy|7.3|7|22|3.69|12.39|0|0
Orbit Breakers|Sci-Fi|8.2|4|11|4.89|16.79|0|0
Veiled Secrets|Thriller|7.9|2|12|4.59|13.79|0|0
Fading Lights|Drama|8.4|5|16|4.19|14.59|0|0
Moonlit Vows|Romance|7.5|3|18|3.99|13.49|0|0
Shadow Hunters|Fantasy|8.0|4|9|4.69|15.29|0|0
City Beat|Crime|7.4|6|14|4.29|13.69|0|0
Dark Omens|Horror|6.5|2|10|3.39|11.39|0|0
Joke Junction|Comedy|7.7|5|20|3.79|12.49|0|0
Intergalactic|Sci-Fi|8.5|3|10|4.99|17.49|0|0
Last Confession|Thriller|7.6|4|13|4.49|13.29|0|0
Shades of Truth|Drama|8.3|5|15|4.39|14.39|0|0
Hearts Aflame|Romance|7.4|2|16|3.89|12.69|0|0
Enchanted Woods|Fantasy|8.2|3|8|4.79|15.99|0|0
Night Patrol|Crime|7.8|4|12|4.29|13.89|0|0
Eerie Nights|Horror|6.7|2|9|3.49|11.59|0|0
Funny Folks|Comedy|7.5|6|22|3.69|12.69|0|0
Stellar Voyage|Sci-Fi|8.4|5|11|4.89|16.99|0|0
Twisted Paths|Thriller|7.7|3|14|4.59|13.99|0|0
51 changes: 51 additions & 0 deletions aayushman_t/data/movies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
The Starfarer|Sci-Fi|8.2|2.15|3.99|14.99|0|0
Midnight Run|Action|7.8|1.95|4.49|12.99|0|0
Whispers in the Dark|Thriller|6.9|1.75|3.49|11.99|0|0
Summer Dreams|Romance|8|2|3.99|13.99|0|0
The Last Frontier|Adventure|7.5|2.25|4.99|15.99|0|0
Echoes of Time|Drama|8.5|2.3|4.29|14.49|0|0
Haunted Shadows|Horror|6.5|1.6|3.29|10.99|0|0
City of Sparks|Comedy|7.2|1.85|3.79|12.49|0|0
Quantum Leap|Sci-Fi|8.7|2.45|4.79|16.99|0|0
The Iron Oath|Action|7.9|2.1|4.59|13.99|0|0
Silent Waves|Drama|8.3|2.05|4.19|14.29|0|0
Moonlit Secrets|Romance|7.7|1.9|3.89|12.99|0|0
Crimson Tide|Thriller|7.4|2|4.39|13.49|0|0
Jungle Quest|Adventure|7.1|2.2|4.69|15.49|0|0
Ghostly Whispers|Horror|6.8|1.55|3.39|11.49|0|0
Laugh Factory|Comedy|7.6|1.7|3.69|12.29|0|0
Nebula Rising|Sci-Fi|8.4|2.35|4.89|16.49|0|0
Bullet Storm|Action|7.3|1.8|4.29|13.29|0|0
Tears of Tomorrow|Drama|8.1|2.25|4.09|14.19|0|0
Love in Bloom|Romance|7.9|1.95|3.99|13.79|0|0
Dark Alley|Thriller|6.7|1.65|3.59|11.99|0|0
Skyward Bound|Adventure|7.8|2.3|4.99|15.79|0|0
Phantom Manor|Horror|6.6|1.5|3.49|11.29|0|0
Giggle Fest|Comedy|7.4|1.75|3.79|12.59|0|0
Starlight Chronicles|Sci-Fi|8.6|2.5|4.99|17.99|0|0
Rogue Agent|Action|7.7|2|4.49|13.99|0|0
Fading Echoes|Drama|8.2|2.15|4.19|14.39|0|0
Hearts Entwined|Romance|7.8|1.85|3.89|13.49|0|0
Shadow Conspiracy|Thriller|7|1.9|4.29|12.99|0|0
Wild Expedition|Adventure|7.6|2.25|4.79|15.29|0|0
Grave Encounters|Horror|6.4|1.45|3.29|10.99|0|0
Chuckle Town|Comedy|7.5|1.8|3.69|12.39|0|0
Galactic Odyssey|Sci-Fi|8.3|2.4|4.89|16.79|0|0
Thunder Strike|Action|7.9|1.95|4.59|13.79|0|0
Broken Promises|Drama|8|2.2|4.09|14.09|0|0
Starry Nights|Romance|7.7|1.9|3.99|13.29|0|0
Hidden Truths|Thriller|6.9|1.7|3.59|11.79|0|0
Mountain Quest|Adventure|7.4|2.3|4.69|15.19|0|0
Cursed Woods|Horror|6.7|1.6|3.39|11.39|0|0
Laugh Riot|Comedy|7.3|1.75|3.79|12.49|0|0
Cosmic Voyage|Sci-Fi|8.5|2.45|4.99|17.49|0|0
Blaze of Glory|Action|7.8|2|4.49|13.69|0|0
Silent Tears|Drama|8.1|2.1|4.19|14.29|0|0
Forever Yours|Romance|7.6|1.85|3.89|13.19|0|0
Night Stalker|Thriller|7.1|1.8|4.29|12.89|0|0
Desert Trek|Adventure|7.5|2.25|4.79|15.39|0|0
Haunted Legacy|Horror|6.5|1.5|3.29|11.19|0|0
Funny Bones|Comedy|7.4|1.7|3.69|12.29|0|0
Interstellar Dreams|Sci-Fi|8.4|2.5|4.99|17.29|0|0
Final Stand|Action|7.7|1.95|4.49|13.59|0|0
dummy|dummy|0|0|0|0|0|0
3 changes: 3 additions & 0 deletions aayushman_t/data/users.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
aayushman:querty
aayush:rty:admin
test:pass:admin
Loading