Pic Stream
An Instagram-like application created using MongoDB Stitch and React.js. Live-coding videos for this app can be found on the StitchCraft YouTube Playlist.
web-ui
React.js application created using Create React App.
stitch-app
Exported (as template) Stitch app.
Scripts
The following scripts will assist in the initial setup of your Stitch Application.
Requirements:
- Install the stitch-cli
- Generate an API Key
- Create a
.env
file like the following
export STITCH_API_KEY=<API_KEY>
export STITCH_USERNAME=<CLOUD_USERNAME>
export STITCH_APPID=<APPID>
- Create a
secrets.json
file in thestitch-app
directory like the following
{
"auth_providers": {
"oauth2-google": {
"clientSecret": "<client-secret>"
}
},
"services": {
"AWS": {
"secretAccessKey": "<secret-access-key>",
"accessKeyId": "<access-id>"
}
}
}
NOTE: Do not commit this file.
deploy.sh
Deploy current code using ./deploy.sh
in the root of the project
> ./deploy.sh
export.sh
Export the project code template using ./export.sh
in the root of the project.
> ./export.sh
Note: This exports the application configuration without any service ID values, including the App ID.