VueTube is a YouTube clone built with nodejs, expressjs & mongodb.
CRUD (Create, Read, Update And Delete)
Frontend was developed with vue js and vuetify VueTube
Hosted on netlify: [Coming Soon]()
Extensive and testing documentation with postman: VueTube API
Though the diagram uses sql data type, this diagram is to show you the various collections in the mongo database.
Rename the config/.env.example to .env, then modify to your environment variables, mongodb uri, set your JWT_SECRET and SMTP variables
NODE_ENV=development
PORT=3001
MONGO_URI=YOUR_URL
JWT_SECRET=YOUR_SECRET
JWT_EXPIRE=30d
JWT_COOKIE_EXPIRE=30
FILE_UPLOAD_PATH = ./public/uploads
MAX_FILE_UPLOAD = 1000000
SMTP_HOST=smtp.mailtrap.io
SMTP_PORT=2525
SMTP_EMAIL=
SMTP_PASSWORD=
FROM_EMAIL=noreply@quizapp.com
FROM_NAME=QuizzApp
Email testing: use mailtrap for email testing, it's easy no stress.
Install all npm dependecies
npm install
Install nodemon globally
npm install -g nodemon
Make sure you run the seeder to get categories in your database or Create a user with the role admin, then add category with the category endpoint.
Run database seeder
node seeder -i
Delete all data
node seeder -d
node run dev
Delete the screenshot folder if you download this code (Screenshots folder is 3.14mb in size).
For more screenshots check out the vue frontend repo VueTube
This project is licensed under the MIT License
Reach me on twitter @techreagan