Skip to content

Commit

Permalink
completing installation and delivering sources
Browse files Browse the repository at this point in the history
  • Loading branch information
samkos committed Nov 13, 2020
1 parent b07815c commit 4933716
Show file tree
Hide file tree
Showing 69 changed files with 6,161 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/install.rst
Expand Up @@ -179,12 +179,13 @@ continuing
.. image:: images/amplifyPublish3.png


Installing *Ludion* local components
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

9. Installing *Ludion* local components
::
$ sh ../install/ludion_cli_configure.sh

Executables are gathered in the *API/unix/* directory. Adding this
At this point the ludion cli unix commands should be fully configured in
the *../API/unix/* directory. Adding this
directory to *PATH* variable completes the installation of
*Ludion*,
*Ludion*


44 changes: 44 additions & 0 deletions install/amplify_init.sh
@@ -0,0 +1,44 @@
#!/bin/bash

if [[ -z $1 ]]; then
echo ERROR : give the name of your ludion environment
echo example
echo amplify_init prod
exit 1
echo $1 > .stack_name
fi

set -e
IFS='|'

REACTCONFIG="{\
\"SourceDir\":\"src\",\
\"DistributionDir\":\"build\",\
\"BuildCommand\":\"npm run-script build\",\
\"StartCommand\":\"npm run-script start\"\
}"
AWSCLOUDFORMATIONCONFIG="{\
\"configLevel\":\"project\",\
\"useProfile\":true,\
\"profileName\":\"default\"\
}"
AMPLIFY="{\
\"projectName\":\"ludion\",\
\"envName\":\"test\",\
\"defaultEditor\":\"none\"\
}"
FRONTEND="{\
\"frontend\":\"javascript\",\
\"framework\":\"react\",\
\"config\":$REACTCONFIG\
}"
PROVIDERS="{\
\"awscloudformation\":$AWSCLOUDFORMATIONCONFIG\
}"

amplify init \
--amplify $AMPLIFY \
--frontend $FRONTEND \
--providers $PROVIDERS \
--yes

13 changes: 13 additions & 0 deletions install/amplify_push.sh
@@ -0,0 +1,13 @@
#!/bin/bash
set -e
IFS='|'
CODEGEN="{\
\"generateCode\":true,\
\"codeLanguage\":\"javascript\",\
\"fileNamePattern\":\"src/graphql/**/*.graphql\",\
\"generateDocs\":true,\
\"maxDepth\":2\
}"
amplify push \
--codegen $CODEGEN \
--yes
19 changes: 19 additions & 0 deletions install/aws-exports.js.template
@@ -0,0 +1,19 @@
/* eslint-disable */
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.

const awsmobile = {
"aws_project_region": "__region__",
"aws_appsync_graphqlEndpoint": "__GraphQLAPIEndpointOutput__",
"aws_appsync_region": "__region__",
"aws_appsync_authenticationType": "API_KEY",
"aws_appsync_apiKey": "__GraphQLAPIKeyOutput__",
"aws_appsync_dangerously_connect_to_http_endpoint_for_testing": true,
"aws_cognito_identity_pool_id": "__IdentityPoolId__",
"aws_cognito_region": "__region__",
"aws_user_pools_id": "__UserPoolId__",
"aws_user_pools_web_client_id": "34aqudgo3im9rkdqhgcg083k6p",
"oauth": {}
};


export default awsmobile;

0 comments on commit 4933716

Please sign in to comment.