/zuck_life

Social Media On Graphs

Primary LanguageTypeScript

Zuck Life

This Project demonstrates how to use "The Foxx Way" architectural pattern to build a social media app on graphs.

For more information you can:

Project Architecture

Architecture

Project Structure

├── README.md
├── frontend  ( React         - Javascript )
├── API       ( Express/Proxy - Typescript )
└── services  ( Foxx          - Typescript )
    |
    ├── auth  ( Sessions logic, User creation )
    ├── posts ( Posts, comments, ratings      )
    └── user  ( Followings, timelines, etc.   )

Running The App

  • Install the dependencies:

    ./install_packages.sh
  • Run arangodb with a specified config file

    arangod -c <PATH-TO-CONFIG>/arangod.conf

    (note: you need to have --http.trusted-origin * option for your services to be able to send credentials via the reverse-proxy)

  • Run each service:

    • Frontend - yarn start
    • API - npm run watch
    • Services
      • {Auth,User,Posts} - npm run install:service