docker compose build
docker compose up
This app contains client and server. The server is exposing GraphQL endpoint using node.js, express and graphql.
- Server is running on port 4000 and client is running on port 3000. To avoid, cross origin request errors, enabled CORS in server
- Enabled ES6 imports in server
- Refactored the code and moved data, schema and resolvers in separate folder
- As of now, data is static but Data should be fetched from database
- Apollo sever is bringing schema first approach, type safety, caching support etc.
- Implemented a resolver that will fetch all the activity and also search for activities
- Client app is build using React, @apollo/client and @testing-library/react
- Client is running on port 3000
- Refactored the code and created components, hooks folder and moved respective things there
- Single query to fetch all the activities and if search term is passed same query can be used
- Added loader
- Added debounce time when typing happens in search box
- Added test cases for Search ActivityList and SearchInput