Skip to content

A starter project to help teach Mux users how to direct upload videos from their machine via a file picker / upload button.

License

Notifications You must be signed in to change notification settings

ncfx/mux-direct-upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Direct Upload Button Starter with Mux

A starter project to teach Mux users how to directly upload from their machine via a file picker / upload button.

Prerequisites

Credentials and Environment Variables

Create a .env file at the root of the project, paste the below, and replace the square brackets with your Mux API credentials.

PORT=[server port other than 3000]
API_TOKEN_ID=[your mux video api token id]
API_SECRET=[your mux video api secret]

Setup

git clone https://github.com/clearlyTHUYDOAN/mux-direct-upload.git
cd mux-direct-upload
// Install server-side dependencies
npm install
// Install client-side dependencies
cd client
npm install

Running the starter project

Run the following in separate terminals, from the root:

Server

npm run server

Client

npm run client

Running the final project

Run the following in separate terminals, from the root:

Server

npm run final-server

Client

Go into the client folder's index.js file. Uncomment out the import line using Final-Button.js.

Then, comment out the active line importing Button.js. Next, run the following command:

npm run client

About

A starter project to help teach Mux users how to direct upload videos from their machine via a file picker / upload button.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.8%
  • HTML 19.2%
  • CSS 6.0%