Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Development [PENDING] #7

Open
wants to merge 43 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d223a07
models and db folder created
arcVaishali Jun 20, 2024
34688e6
directory structure modified, .gitignore file added, nodemon devdepen…
arcVaishali Jun 20, 2024
a7bfab5
local developer notes file added
arcVaishali Jun 20, 2024
6e7042b
developer notes file modified
arcVaishali Jun 20, 2024
9c889f1
prettier devdependency added, prettier configuration done, .prettieri…
arcVaishali Jun 20, 2024
72d3d7c
express, dotenv, mongoose dependencies added, scripts changed, dev co…
arcVaishali Jun 20, 2024
1778c1c
chore: update Prettier configuration and adjust .gitignore- Modified …
arcVaishali Jun 20, 2024
114e715
feat: add initial project files
arcVaishali Jun 20, 2024
32101ab
removed .prettier.ignore file from .gitignore file
arcVaishali Jun 20, 2024
98b1dd2
user schema initialsed, movies schema initialised
arcVaishali Jun 20, 2024
49c7a2a
schema documentation started, eraser.io link added
arcVaishali Jun 20, 2024
49b2743
schema documentation updated, user schema, movie schema and shows sch…
arcVaishali Jun 20, 2024
7b4cd8b
user and movie schema added, new schema models added- shows, subscrip…
arcVaishali Jun 20, 2024
ed0596f
new field added to movie schema
arcVaishali Jun 20, 2024
dcd11a6
shows schema added
arcVaishali Jun 20, 2024
54d6e62
episode schema created, shows schema modified
arcVaishali Jun 20, 2024
7ce0058
comment schema added
arcVaishali Jun 20, 2024
ff0d93d
media schema added, user schema modified
arcVaishali Jun 20, 2024
a8592a0
watch list and watch history fields modified
arcVaishali Jun 20, 2024
79cd492
like schema added
arcVaishali Jun 20, 2024
f979174
rating schema added
arcVaishali Jun 20, 2024
d798172
subscription schema added
arcVaishali Jun 20, 2024
fa04d90
watchlist schema added
arcVaishali Jun 20, 2024
e5eabba
likes model modified
arcVaishali Jun 20, 2024
a761414
user model corrected
arcVaishali Jun 21, 2024
d6e7c10
shows model modified
arcVaishali Jun 21, 2024
0d5cf07
shows model modified
arcVaishali Jun 21, 2024
6465503
review schema updated
arcVaishali Jun 21, 2024
a9fb35f
movie schema updated
arcVaishali Jun 21, 2024
d3161be
shows schema updated
arcVaishali Jun 21, 2024
608dec4
api definition started
arcVaishali Jun 21, 2024
5760b28
environment variables setup complete with Readme
arcVaishali Jun 21, 2024
4a1e337
feat: App running and Database connection successful. Scripts in the …
arcVaishali Jun 21, 2024
930f51c
modified
arcVaishali Jun 22, 2024
f605a9d
routes and controllers added
arcVaishali Jun 22, 2024
23a5fcb
bcrypt, cloudinary, cookie-parser, cors, jsonwebtoken, mongoose-aggre…
arcVaishali Jun 22, 2024
c913fd6
middlewares added
arcVaishali Jun 22, 2024
63ecc9a
file upload on the server middleware added using multer and file uplo…
arcVaishali Jun 22, 2024
4765e66
user regsiter route and controller added
arcVaishali Jun 22, 2024
18d4a20
utility added- standard api response template added, api error functi…
arcVaishali Jun 22, 2024
8252e85
modified
arcVaishali Jun 24, 2024
d1cebbc
added
arcVaishali Jun 24, 2024
5441c5f
modified
arcVaishali Jun 24, 2024
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
3 changes: 1 addition & 2 deletions P1/Project Brief/entertainment-web-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@
*.xd

# Avoid your project being littered with annoying .DS_Store files!
.DS_Store
.prettierignore
.DS_Store
123 changes: 123 additions & 0 deletions P1/Project Brief/entertainment-web-app/server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# local developer notes
notes.md

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env.production

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# End of https://mrkandreev.name/snippets/gitignore-generator/#Node
7 changes: 7 additions & 0 deletions P1/Project Brief/entertainment-web-app/server/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.vscode
/node_modules
./dist

*.env
.env
.env.*
8 changes: 8 additions & 0 deletions P1/Project Brief/entertainment-web-app/server/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": true ,
"tabWidth": 4 ,
"semi": true ,
"bracketSpacing": true ,
"singleQuote": true ,
"trailingComma":"es5"
}
25 changes: 25 additions & 0 deletions P1/Project Brief/entertainment-web-app/server/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#### Initial setup

- Run the following command
```shell
npm install
```
- Create a .env file.
- Add environment variables in your .env file
```
PORT = PORT_NUMBER
MONGODB_URI = YOUR_MONGODB_URI

CORS_ORIGIN= "*"

ACCESS_TOKEN_SECRET = YOUR_ACCESS_TOKEN_SECRET
ACCESS_TOKEN_EXPIRY = "1d
REFRESH_TOKEN_SECRET= YOUR_REFRESH_TOKEN_SECRET
REFRESH_TOKEN_EXPIRY = "10d"

# we use cloudinary to store images and videos
CLOUDINARY_CLOUD_NAME = YOUR_COULDINARY_CLOUD_NAME
CLOUDINARY_API_KEY = YOUR_CLOUDINARY_API_KEY
CLOUDINARY_API_SECRET = CLOUDINARY_API_SECRET
```

Loading