Skip to content

PavelSusloparov/friends-registry

Repository files navigation

Friends-registry

This is a sample project to showcase the following capabilities:

  • JavaScript/React/Apollo GraphQL/Mongo stack
  • Optimistic components rendering
  • Apollo GraphQL subscription

Documentation

Pre-requirements for local environment setup (MacOSX)

brew install nvm

*Hint:*
if you use zsh and get a message `zsh: command not found: nvm` then add the snippet below to your .zshrc file
# For brew, at least
export PATH=/usr/local/opt:/usr/local/bin:$PATH

# NVM Stuff
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
  • Install node
nvm install 12
nvm alias default 12
nvm use 12
  • Install npx
npm install -g npx

Run applications

Start mongo database

docker-compose up -d

Start server in one console tab

cd server
npm install
npm start

Access GraphQL playground

http://localhost:4000/graphql

Start client in another console tab

cd client
npm install
npm start

Access the application

http://localhost:3000/

About

JavaScript/React/Apollo GraphQL/Mongo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published