aboutsummaryrefslogtreecommitdiff
path: root/web/README.md
diff options
context:
space:
mode:
authorAndrewMihai <41450954+AndrewMihai@users.noreply.github.com>2019-02-21 23:55:35 +0000
committerGitHub <noreply@github.com>2019-02-21 23:55:35 +0000
commit0a83e2a2a42e168d18c66888bba3d3bebbbc3d29 (patch)
tree7754c0837ae23952984bd5f9339bab4be270c51f /web/README.md
parente29d2e6c05f9fb2e6b630fed48904943625ad358 (diff)
parent4b588e647dedbb49f54f9dd390b96f8466321ece (diff)
Merge pull request #12 from csc301-winter-2019/master
Merging new commits from master into feat/5 branch
Diffstat (limited to 'web/README.md')
-rw-r--r--web/README.md62
1 files changed, 62 insertions, 0 deletions
diff --git a/web/README.md b/web/README.md
new file mode 100644
index 0000000..d470960
--- /dev/null
+++ b/web/README.md
@@ -0,0 +1,62 @@
+# The web component
+
+## How to run in your LOCAL env:
+
+### Requirements
+
+1. docker (or local mongodb install)
+2. npm
+
+#### Steps
+
+1. Spawn up a docker container with mongodb OR start mongo from local install
+
+ `docker run -d --name mymongo -p 27017:27017 mongo`
+
+2. enter inside the container:
+
+ `docker exec -it mymongo mongo`
+
+3. run inside the interactive mongo shell:
+
+ `use helpthehome`
+
+4. Put in some dummy data to start, run:
+
+```
+db.pointscollection.insert({
+ "type": "MultiPoint",
+ "name": "points",
+ "color": "#0000ff",
+ "style": {
+ "radius": 8,
+ "fillColor": "#00ce00",
+ "color": "#008c00",
+ "weight": 2,
+ "opacity": 1,
+ "fillOpacity": 1
+ },
+ "coordinates": [-73.9580, 40.8003]
+})
+```
+
+5. Now you are ready to start the app:
+
+ From this directory:
+
+ `npm install`
+
+ `npm start`
+
+ Then open your browser to `localhost:3000`
+
+You should be greeted with a page with a map. From next time onwards, just start up the mongo container with `docker start mymongo`.
+
+## You can view the current latest production site on Heroku (master branch)
+
+not yet.
+
+## You can view the current latest QA site on Heroku (qa branch)
+
+https://helpthehome-qa.herokuapp.com/
+