#Positioning service client
##Instructions
-
Install the rails server (the latest release!) by following the instructions under "REST-API" in this repo: https://github.com/hg222dt/positioning_service
-
When you completed the rails server install, retrieve a client api key from the registration application, by following the instruction number 3 at the last installed repos instructions.
-
Retrieve your client specific api-key and add it to this file in this repo: /positioning_service_client/public/js/config.js. Add the key to the "key" value.
-
Clone this repo to your local environment.
-
Run npm install inside the project root folder.
-
You can now run the app by from the project root folder entering the command node app.js.
-
When you run the apps locally, remember to run the rails-server on port 3000 and the client-server on port 4000.
-
There should now be a created user for you in the client app with username: "[email protected]", and password: "hejhej". There will also be two pre-created Doodles, one in Paris and one in Berlin.
##Functionality
- Show all registered Doodles. User can click on Doodle card and the specific marker position will appear on map.
- Search for doodles containing search term.
- Filter doodle result in terms of username ang tagg.
- Create an account.
- Log in to account.
- Create a Doodle. (For logged in users)
- Update own Doodle. (For logged in users)
- Delete own Doodle. (For logged in users)
- A profile overview of users own Doodles. (For logged in users) User can click on Doodle card and the specific marker position will appear on map.
##What has been changed on the API side since last release?
- The Rack-CORS gem is now used to allow cross site requests.
- Changed response to "respond_with" in getDoodleSByTag return.
- Added methid for getting doodles by username.
- Fixed method for getting Doodles by username.
- Now returning doodle_id on recently removed Doodle.
- Changed return messages when user register, if username och email is already registered.
- Changed return message when user login, if credentials is not correct.