AutoPostr allows you to schedule youtube videos randomly each day, sourcing from google drive. With the ability to configure the number of videos to post, title, description, and tags. Basically its a youtube sheningan... with a very specific use case.
-
Set Up Google Cloud
- Create a Google Cloud project.
- Enable the YouTube Data API v3 and Google Drive API.
- Go to Credentials and set up OAuth 2.0 credentials:
- Click Create Credentials > OAuth client ID.
- Select Web application in the application type.
- Add
http://localhost:3000/auth/callback
or<deployed-url>/auth/callback
as authorized redirect URIs and save. - Then go to the OAuth consent screen tab and fill in the required fields.
- Add the following scopes:
https://www.googleapis.com/auth/youtube.upload
https://www.googleapis.com/auth/drive.readonly
- Get your Client ID and Client Secret from Credentials, then save them in a
.env
file (refer to.env.example
).
-
Set Up MongoDB
- Create a free database using MongoDB Atlas.
- Add the database connection string to your
.env
file.
-
Deploy the Project
Run these commands:git clone https://github.com/sea-deep/autopostr cd autopostr # Rename .env.example to .env and fill in the required fields npm install node .