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
serverandclientdirectory in two different terminal window/tab. - Make sure you've satisfied all the Database Prerequisites.
- Inside the
serverdirectory, runnpm installand then runnpm run start. - Inside the
clientdirectory, runnpm installand then runnpm run start. http://localhost:3000this url should open up automatically on your browser and the app is good to go.- Browse
http://localhost:4000/graphqlfor 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:latestto create mysql tables. - Run
yarn knex seed:runto seed the tables with dummy data.
