-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start up - tutorial #35
Comments
Hej, Are you interested in learning how to use the platform or how to operate it. Unfortunately the docs are lacking in that area at the moment. Happy to get input of what is essential for somebody to understand the internals. In the meantime there is infrastructure description with terraform and docker/build scripts that show how the binaries are created, orchestrated and monitored. |
@tugal If you're interested in the usage our wiki has a lot of docs: https://github.com/tapglue/snaas/wiki |
Hi, Sorry for the delay. @xla : i will take a look at docker's script thanks, |
Indeed, would be nice to have a guide on how to self host SNAAS on your own server. |
@mnemonicflow Hej, it works partially outside of AWS. The API itself has dependencies on Postgres and Redis and therefore can be operated outside of Amazon. If you desire to have notifications working that is currently relying heavily on SQS and SNS. |
As I'm still learning the codebase, can you provide a summary of the components?
For example, what is the purpose of SIMS ? What's the usecase? When it is used? By whom? |
Is for simple data export/import, usually when somebody needs a dump of their dataset.
Is the main API at the core of the system.
Listens to state changes in the domain and sends out notifications (push only for now) to registered user devices.
Is a wrapper to help with the single-command/out-of-the-box experience of the overall setup. It manages remote state and enforces the understanding of zones, our way of isolating installations. |
Thanks. I've managed to build and run locally the two binaries (gateway-http and sims) in a Docker container using the scripts from the infrastructure directory. Now I need to figure out how to use the service from the TapGlue Android SDK, i.e.
Not sure yet how to generate the different API keys/access tokens required for authentication. Any hints? |
Got it working 👍 by creating a data/apps.json file:
and importing it using Then I could use that app token to create a user and get back a session token as per: https://github.com/tapglue/snaas/wiki/users-create-user |
I see that the console component provides a LE: I think PR #25 gives some answers to what I've asked above. |
@mnemonicflow #25 is exactly the place to look at. In essence it will be the component to manage stack including, setting up apps and other domain entities. Beyond that it will serve as tool for community management and general management UI. Happy to hear about specific requirements/use-cases that it should cover in the PR. |
@mnemonicflow how did you manage to build the project ? Could you please explain ? |
There are multiple ways to build:
|
Hi I'm trying to run
It returns
Which means that Postgres is not reachable..but does a container is supposed to access to my postgres throught 'localhost' ? Thanks |
Grr, my postgres was buggy. it works now. sorry |
With @mnemonicflow help, everything works now. |
Thanks @mnemonicflow |
@tugal : How did you manage to import the apps.JSON file (As @MCRrAMKkE4 mentioned) into the docker image that you ran. I managed to successfully pull the docker image and ran it. But at the API endpoint, it's giving a 404, what could possibly be the issue? (I'm new to docker.) Can someone please help me with successfully running it? @xla |
@noblegeorge What api endpoint did you try to call? If you have only a couple of apps to import you can try to run the Console compenent and create the apps in the UI. |
@xla Sorry. I'm new to Tapglue & Docker. These are the steps I followed so far, 1, Pulled the available docker image into my EC2 Ubuntu instance. 2, Created an AWS RDS Postgres instance. 3, Tried running the container as,
Looks like it's running successfully.
4, But as I try to access it via the hostname: http://ec2-13-229-118-6.ap-southeast-1.compute.amazonaws.com it's returning me with a custom 404 error. Maybe I'll sound noob. Please bear with me. |
@noblegeorge Root or You can refer to this section for the related redis setup: https://github.com/tapglue/snaas/blob/master/infrastructure/terraform/template/storage.tf#L147-L172 |
Hi,
Thanks for your work, it looks awesome.
is there any tutorial to start with ? how to build the platform..
Thanks,
Nelson
The text was updated successfully, but these errors were encountered: