Skip to content

kong1383068/snac

 
 

Repository files navigation

SNAC Server

Gitter

This repository contains the entirety of the SNAC Server code, including all components written by the UVA development team.

The Testing Install file includes instructions for how to install the server locally for testing purposes.

Codebase Organization

The code is organized into the following PHP namespace organization, with mirroring directory structure.

\snac
    \client
        \webui
            \workflow
        \rest
        \testui
    \server
        \workflow
        \identityReconciliation
        \dateParser
        \nameEntryParser
        \dataValidation
        \reporting                  % Wrapper
        \authentication             % Wrapper for OAuth
        \authorization
        \database                   % Database interaction (mainly wrappers)
        % possible wrappers for Neo4J and Elastic Search

Repository Organization

/
    /src                % containing all snac sourcecode
        /snac           % ...
        /virtualhosts
            /www
            /rest
            /internal
    /test               % containing all unit tests (mirrors /src)
        /snac           % ...
    LICENSE             % code license
    README.md           % this readme file

Optional Web Application URL Mappings

All endpoints to the server will share the same codebase, but with an index.php that includes the codebase and instantiates and executes the run() method of the appropriate class. Then, for example, we may have:

www.snaccooperative.org
    mapped to     /src/virtualhosts/www
    instantiates  \snac\client\webui\WebUI
api.snaccooperative.org
    mapped to     /src/virtualhosts/rest
    instantiates  \snac\client\rest\Rest
localhost:xxxx   
    mapped to     /src/virtualhosts/internal
    instantiates  \snac\server\Server

About

SNAC Server with WebUI and RestAPI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TSQL 90.1%
  • PHP 4.8%
  • HTML 2.6%
  • JavaScript 2.1%
  • Other 0.4%