See Live Project Omedia-Colab
-
Akaki Ivanishvili
-
Irakli Bidzishvili
Youtube like application, where user can register/login and upload media files (video content).
All uploaded content are shown on application main page.
Authorized user is able to delete his/her uploaded media.
Media can be Public or Private. Private media is only visible to its owner.
User can edit media : title | thumbnail | Private/Public visibility.
-
MEVN STACK
-
VueJS
-
NodeJs/Express
-
MongoDB/mongoose
-
Mongo-Session
-
Cloudinary API
-
REDIS
-
Fork this Repo git clone https://github.com/Ikamean/Omedia-Colab.git
-
Go into Project folder cd Omedia-colab
-
Optional : You can Rename folder for further easy access mv Omedia-Colab <some simple name>
-
Create new branch git checkout -b <Your Branch Name>
-
Make some changes
-
Add changes to your new branch git add .
-
Commit changes git commit -m 'usefull message'
-
Push your local branch to remote repo git push origin <Your Branch Name>
-
See envSample file for enviromental variables
-
pull this branch
-
npm install
-
npm run dev
Install Dependencies
-
npm install
Development Mode
-
npm run serve
Production Build
-
npm run build
Linting
-
npm run lint
REQUEST METHOD ->>> PATH
-
POST ->>> /api/register BODY { userName : String, password : String }
-
POST ->>> /api/login BODY { userName : String, password : String }
-
POST ->>> /api/logout
-
GET ->>> /api/user/me
-
GET ->>> /api/media
-
POST ->>> /api/upload BODY { title : String, mediaFile : Binary, thumbnail: Binary, private : Boolean }
-
DELETE ->>> /api/media/delete/:id
-
PUT ->>> /api/media/edit/:id BODY { title : "new title", thumbnail: "new file/ or previous url" private: boolean }