Skip to content

Keep in Touch, a social network for keeping in touch with your friends.

Notifications You must be signed in to change notification settings

timmyichen/kit-3

Repository files navigation

Keep In Touch

Keep in Touch is a simple social network for sharing contact information.

Live site is here.

Motivation

My college friends and I enjoyed writing each other letters and sending each other postcards when we went abroad, but being college students, we moved around every year. Having to ask each other whether they still lived at address X was tiring, and ruined any potential mail-based surprises. We built KIT as a way to make life easier for both sender and receiver. Sender no longer has to ask everyone for their updated contact info (called "Deets" on KIT), and receivers no longer have to individually tell all their friends about their new deets.

Codebase

The entire stack is TypeScript. The following technologies are used...

on the client:

  • React
  • Next.js
  • GraphQL Apollo
  • Semantic UI React for UI components

on the server:

  • Express
  • PostgresQL + Sequelize
  • GraphQL for querying / mutations

In addition, we use graphql-codegen to generate schemas and React hooks for GraphQL mutations and queries.

Dev Setup

A development environment for this requires some setup, as it uses Google Cloud Storage for profile images. Docker will set up a local postgres database to use.

Your Google Cloud Storage auth json file should go under config/gcs-owner.json.

docker-compose up

On first run, also run all existing migrations on the database by running:

docker-compose exec app npm run db:migrate

OR run the seed script (this will also migrate):

docker-compose exec app npm run dev:seed

You can also connect to the local database by running:

docker-compose exec db psql -U postgres -d postgres

Connect to local redis with:

docker-compose exec app redis-cli -h redis

The docker-compose exec app commands require that docker-compose up be running first.

To generate graphql mutation/query hooks, run npm run gql:gen. No need to run within docker.

Testing

To run tests, run:

docker-compose exec app npm run jest:watch

To run a test for a particular file, run:

docker-compose exec app npm run jest:watch path/to/file

To turn watchmode off, just remove :watch

Deployment

Deployment is all done through heroku now.

Misc Notes

to get aliases working on vscode see: microsoft/vscode#50329

About

Keep in Touch, a social network for keeping in touch with your friends.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published