An app to stream your favourite videos
Part of technical assessment,
Please proceed to trivial_questions
folder to see my solution for question 1 to 4
- Go to Server folder
cd DumbStreamingAPI
- Install dependencies
npm install
- Copy the
.env_example
file with new name.env
cp .env_example .env
- Specify the environment accordingly, please edit your password and username, keep the
DB_NAME
, and you can also editPORT
(optional) (default: 5000) - If you have MySql server installed, please run
initiate_db.sql
script to populate the DB first
mysql -u<your-username> -p<your-password> < initiate_db.sql
- Start the API server, now the API server is running on the port you specified before (default: 5000)
npm run dev
- Get back to the root folder
cd ..
- Go to Web App folder
cd DumbStreamApp
- Install dependencies
npm install
- Copy the
.env_example
file with new name.env
cp .env_example .env
- Specify the environment accordingly, if you edit
PORT
before in the server app, please specify that port inREACT_APP_API_URL
(default: 5000) - Run the Web App
npm run start