It's a great little service for searching the movie db
To run in docker-compose, it requires docker :D
To run natively, it requires node version 8+
From the project root:
docker-compose build
docker-compose up
Run the server:
cd api
npm install
npm run start
(in another session) Run the app:
cd app
npm install
npm run start
api
is pretty cut and dry.
src
which holds all the source code- inside
src
, there'smain.js
which builds and runs our serverconf.js
which holds conf properties for the serverdb
which holds:moviedb.js
which contains all fetching logic for the moviedb api
graphql
which holds:resolvers.js
which are your average graphql resolvers that map queries/mutations to the dataschema.js
which is the graphql schema definition for the service
app
is a bit more complex in its organization.
All code is split into focused domains and subdomains. ex:
/movies/pages
/movies/components
/movies/utils
/movies/graphql
/nonIdealStates/components
/nonIdealStates/pages
/routing/components
The app's router is found in src/routing/components/Router
. It's just react-router-dom.