Sanbase
This is the source of the sanbase project of https://santiment.net
.
Running with docker
If you have docker you can run the app simply by running:
$ bin/server.sh
This is going to run the app on port 4000, so localhost:4000
should be accessible.
There will be no data in the database, so run this command to fill some information in the database:
$ bin/setup.sh
If you want to access an IEX console attached to the running server, run:
$ bin/console.sh
Structure of the app
The API code is in lib/
and follows the phoenix 1.3
directory structure. You can read more about how to define the API
endpoints from the Phoenix docs.
Running the backend tests
You can easily run the tests using docker with the command:
$ ./bin/test.sh