$ dropdb triplog
$ createdb triplog
$ yarn knex --knexfile=./db/knexfile.js migrate:latest
$ yarn knex --knexfile=./db/knexfile.js migrate:rollback
$ yarn knex --knexfile=./db/knexfile.js seed:run
$ yarn nodemon --watch ./db ./db/server.js
{ ReadUser(type: { id: 1 }) { id, name, email } }
mutation{ CreateUser(input: { id: 5 name: "chaz" }) { id, name } }
id and imageFile can't be changed. Only the keys and values you want to change are needed.
mutation{ UpdatePhoto(input: { id: 1 title: "new title" }) { title } }
mutation{ DestroyPhoto(input: { id: 1 }) }
About | Features | Setup | Deployment | Contributions
Sojournal
Trip Log™ is a cloud image storage based on geographic location. Though Trip Log is aimed to expand creativity of our users through automatic mapping of photos and user friendly text editing interface, with Trip Cam, it can be expanded infinately more.Trip Log™ respects the privacy of our users. Although our users can share their stories via integrated image export or url, user decides if it is partially shared or the whole.
Once you open the app, you will see your geographical location zoomed into google map.
Click on the Upload button and it will direct you to your image gallery on your mobile device. Select one or multiple images to upload.
Once photos are chosen, you will be able to see it on the map. Please refer to the instruction below to learn more about writting comments for each photo uploads.
If you click a marker, an informational pop-up balloon with the name of that truck stop will appear just above the marker.
To close a pop-up balloon, click the marker or the close button (marked with an 'x') in the upper-right hand corner of the balloon.
Install the dependencies and devDependencies and start the server.
yarn
Install postgres, if it isn't already installed.
Create a database called "truckstop"
createdb truckstop
To view your project locally (on http://localhost:9000/) you need to run the build script and connect to the localhost.
yarn build yarn start
To work on Heroku, you need to be added as a collaborator by the project manager. Follow [this tutorial](https://devcenter.heroku.com/articles/getting-started-with-nodejs) to set your machine up for Heroku. To access Heroku from your machine, you need to be added as a collaborator by the project manager.
Useful: add Heroku as a remote using:
heroku git:remote -a truck-stops
The master branch is the stage and production. Therefore, when working locally, please make sure you are working from a branch and not directly on the master branch, create your branch and set up upstream as below.
git remote add upstream https://github.com/codechrysalis/cc7-project.continuous-delivery-react.git
If your change is to be merged with the master branch, it will be automatically deployed via Heroku.
In order to make contributions be sure that your changes are created in a new branch with descriptive name that explains what is being changed (e.g. "truckstop-ui-fix") and in your pull request be sure to provide a detailed description of the changes made.
Note: It is best to discuss your proposed changes before starting on a contribution to be sure that your contribution is suitable for the project.