Crunchyroll is our project for the course CSE-216. This is focused on streaming anime and manga to the viewers.
The project schema can be viewed via link below:
ERD of our project can be viewed here:
YouTube link: here
A brief screenshot is given below:
A video demonstration of our work can be viewed in the following link:
For development, you will only need Node.js and a node global package, Yarn, installed in your environement.
-
Just go on official Node.js website and download the installer. Also, be sure to have
git
available in your PATH,npm
might need it (You can find git here).
If the installation was successful, you should be able to run the following command.
$ node --version
v8.11.3
$ npm --version
6.1.0
If you need to update npm
, you can make it using npm
! Cool right? After running the following command, just open again the command line.
$ npm install npm -g
After installing node, this project will need yarn too, so just run the following command.
$ npm install -g yarn
We are using oracle as our database. In the Navicat GUI, we open a connection with our database user and related password. Then we select
our schema and right click it. After that, we select the option Execute SQL file and mention the file path of HR.sql. This will
import all the data and tables.
$ git clone https://github.com/Abdus-Samee/CSE-216-Crunchyroll.git
$ cd CSE-216-Crunchyroll
As our project includes large video and pdf files as a source folder of server, these files were not pushed in the Git, in order to recreate the project the "public" folder can be manually downloaded from the following drive link:
In the terminal, the following command will run the server
$ cd crunchyroll-server
$ yarn install
This will download all the necessary packages required to run the server. Next run the following command.
$ yarn start
However, it should generate an error for failing to locate a specific module,
Therefore it is required to install Oracle instant Client, which can be found in the this Link
From there, it is required to download basic package zip and extract in the local computer.
After extracting, the file path of the downloaded folder is to be saved or copied.
Now, back to Crunchyroll-Server source file in the IDE, in the connection\query.js, search for the line with the keyword "oracledb.initOracleClient" and update the file path according to your own file path from earlier like below:
Notice that, the file path string should now also include double blackslashes like the image above.
One last thing to do is checking the connection string inside query function of repository class of connection/query.js. Our schema was developed inside the hr schema. Provide the username and relevant password of your database user.
Now running the following command again should run the server.
$ yarn start
The client part should have its own modules and packages required to run including react scripts. So, in another terminal run the folowing commands:
$ cd crunchyroll-client
$ yarn install
This should download all the required packages. It may take some time. Then running followiing command should open up the react app.
$ yarn start