Browse files

Added a Windows setup section to the ReadMe (#175)

* Added a Windows setup section to the ReadMe

* Changed all gyazo images to github images

* Made suggested changes

* Fixed Spacing Issue

* Added newlines on every line

So there are no spacing issues on specific displays which is why I didn't notice the entire issue before.

* Combined Master + Windows Section Manually

* Updated to match new setup methods

* Merged with Master, (minor text changes)
  • Loading branch information...
Plutoren authored and garoller committed Dec 5, 2018
1 parent 0d6b9f0 commit 7aae23c824bf54ef35d08e38faf35652e0d3dd15
Showing with 59 additions and 0 deletions.
  1. +59 −0
@@ -61,3 +61,62 @@ Removed lyonj4.
> ./shuttletracker admins
## Setting up (Windows)
1. Uninstall any older version of Go that may be on your computer. [Click here]( for a guide on uninstalling Go.
2. [Download Go]( Shuttle Tracker targets Go version 1.7 and newer, but we recommend using the latest stable release of Go.
![Step 2](
3. Open your System Properties by searching `Edit the system environment variables` then press `Environment Variables...`.
* Ensure your `GOPATH` variable is set correctly in the `User variables for (Username)`.
* Select `Path` under `User variables for (Username)` and make sure `%GOPATH%\bin` is on the list.
* Make sure `GOROOT` is set correctly under `System variables`.
* Select `Path` under `System variables` Make sure `GOROOT\bin` is on the list.
This step should be done for you already.
![Step 3](
![Step 3b](
![Step 3c](
![Step 3d](
4. Open a command prompt by pressing windows + r, then type `cmd` and hit ok, or search for command prompt.
![Step 4](
5. Run `go get`.
6. Install `govendor` by running `go get -u`.
7. Switch to the Shuttle Tracker directory (`$GOPATH/src/`).
8. Run `govendor sync`.
![Steps 5-8](
9. Download and run the installer PostgreSQL [from here]( Select the latest version. When prompted to set a password, make it something simple, as you will be using this later, for example `shuttle`. Use default options for everything else. Write down your password.
![Step 9](
![Step 9b](
![Step 9c](
10. When complete, open pgAdmin from your search bar. If you do not see pgAdmin restart your computer. In the Object Browser, open Servers, then open your PostgreSQL server. You will need to enter your password from step 8. Once this is done, right click on Databases and select New Database. Name it `shuttletracker` and hit Ok.
![Step 10](
![Step 10b](
![Step 10c](
11. Navigate to your shuttle tracker directory (`$GOPATH/src/`) and rename `conf.json.sample` to `conf.json`
12. Edit `conf.json` with the following, if necessary:
* `API.MapboxAPIKey`: Necessary for creating routes through the admin interface. [Create your own token]( or ask a Shuttle Tracker developer to provide you with one.
* `Postgres.URL`: URL where Postgres is located which will be the default with postgres:password@localhost added before the database name, where password is your password from step 8. For example: `"URL": "postgres://postgres:shuttle@localhost/shuttletracker?sslmode=disable"`.
![Step 12](
13. Install [Node.js and npm]( Download the recommeneded version and install. Restart your command prompt.
![Step 13](
![Step 13b](
14. Navigate to the frontend directory within the shuttle tracker directory (`$GOPATH/src/`).
15. Run `npm install`
![Step 14+15](
16. Build the frontend using `npx vue-cli-service build --mode development`
- _Note: if you are working on the frontend, you may instead use `npx vue-cli-service build --mode development --watch` in another terminal to continuously watch for changes and rebuild._
![Step 16](
17. Go back up to the project root directory (using `cd ..`) and build Shuttle Tracker by running `go build -o shuttletracker.exe cmd/shuttletracker/main.go`
![Step 17](
18. Start the app by running `shuttletracker.exe` in the project root directory.
19. Add yourself as an administrator by using `shuttletracker.exe admins --add RCS_ID`, replacing `RCS_ID` with your RCS ID. See the "Administrators" section below for more information.
20. Visit http://localhost:8080/ to view the tracking application and http://localhost:8080/admin to view the administration panel.
21. Copy the information from [vehicles](, [routes](, and [stops]( into the admin panel if you want to mimic the current shuttle tracker site.

0 comments on commit 7aae23c

Please sign in to comment.