-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Using Docker!
The purpose of this article is not to babysit the user through the setup, some things are assumed to be installed (npm) or within the user's immediate understanding (git, Docker).
- A Neo4j database. Either install it yourself or quickly deploy one with its docker image.
- An Amazon Web Services (AWS) account.
- An AWS Simple Queue Service (SQS) endpoint.
- An AWS Simple Notification Service (SNS) endpoint.
- Credentials for an email sending service.
- Credentials for Facebook Login.
git clone https://github.com/iampossible/gnome.git
docker pull impossible/gnome-api
Follow the configuration specification (configs.yml in the repository's root) to create a JSON file named server.prod.json.
Email templates should be overridden as they contain references to Impossible People.
Create a directory with the following structure:
templates/
├── inviteEmail.html
├── recoveryEmail.html
└── welcomeEmail.html
Each template's text will be formatted according to javascript's template literals.
See EmailService.js and EmailWorker.js to see which variables you can include in your templates.
At this point, you are expected to have a JSON config file and a templates directory. Run the docker image you compiled using those with:
docker run -d -e "GNOME_ENV=prod" -v $(pwd)/server.prod.json:/usr/src/api/src/config/server.prod.json:ro -v templates:/usr/src/api/templates:ro impossible/gnome-api:latest
And your Gnome server should be running smoothly.
Using Ionic!
After setting up your server, you'll want an app to go along with it.
The app code resides under the app directory.
Create an environment configuration file app/src/Environment.ts based on the configuration specifications (configs.yml in the repository's root).
Replace the logo and splash screen in the resources dir with your own artwork.
Replace the privacy-policy.html and terms-conditions.html pages with your own legal wordings.
ionic resources
ionic state reset
GNOME_ENV=prod ionic build --release android
# or
GNOME_ENV=prod ionic build ios