A graphql movie trailer browser
- Clone the repository using command:
git clone https://github.com/nowshad-sust/graphflix.git
. - Cd into the cloned directory with your terminal:
cd graphflix
. - Open both
server
andclient
directory in two different terminal window/tab. - Make sure you've satisfied all the Database Prerequisites.
- Inside the
server
directory, runnpm install
and then runnpm run start
. - Inside the
client
directory, runnpm install
and then runnpm run start
. http://localhost:3000
this url should open up automatically on your browser and the app is good to go.- Browse
http://localhost:4000/graphql
for the GraphiQL UI.
- Make sure you have mysql installed and it's running on the default port:
3306
. - If you are running for the first time, create a database named
graphflix
. - Run
yarn knex migrate:latest
to create mysql tables. - Run
yarn knex seed:run
to seed the tables with dummy data.