Skip to content

gs-ysingh/activities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run this application

docker compose build
docker compose up

Description

This app contains client and server. The server is exposing GraphQL endpoint using node.js, express and graphql.

Server

  1. Server is running on port 4000 and client is running on port 3000. To avoid, cross origin request errors, enabled CORS in server
  2. Enabled ES6 imports in server
  3. Refactored the code and moved data, schema and resolvers in separate folder
  4. As of now, data is static but Data should be fetched from database
  5. Apollo sever is bringing schema first approach, type safety, caching support etc.
  6. Implemented a resolver that will fetch all the activity and also search for activities

Client

  1. Client app is build using React, @apollo/client and @testing-library/react
  2. Client is running on port 3000
  3. Refactored the code and created components, hooks folder and moved respective things there
  4. Single query to fetch all the activities and if search term is passed same query can be used
  5. Added loader
  6. Added debounce time when typing happens in search box
  7. Added test cases for Search ActivityList and SearchInput

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors