Skip to content

Commit 62763a8

Browse files
author
Ferenc Hammerl
committed
Add vs code steps
Plus some formatting
1 parent 4243a40 commit 62763a8

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ docker-compose up
88
```
99
in the polls folder, wait for Docker and Maven to do their thing, then fire away.
1010
### 1. List all polls created by a user
11-
`http://localhost:8080/api/v1/polls/createdBy?userId=4`
11+
GET: `http://localhost:8080/api/v1/polls/createdBy?userId=4`
1212

1313
_Challenge: make it return a 500 (one answer in the controller)_
1414
### 2. Search polls by its title
15-
`http://localhost:8080/api/v1/polls/search`
15+
POST: `http://localhost:8080/api/v1/polls/search`
1616

1717
RequestBody:
1818
```
@@ -21,9 +21,12 @@ RequestBody:
2121
}
2222
```
2323
### 3. List all polls created after a certain date
24-
`http://localhost:8080/api/v1/polls/listFrom?fromDate=2019-06-01` - all 3 polls
25-
`http://localhost:8080/api/v1/polls/listFrom?fromDate=2020-05-15` - only 2
26-
`http://localhost:8080/api/v1/polls/listFrom?fromDate=2020-06-15` - none
24+
25+
GET: `http://localhost:8080/api/v1/polls/listFrom?fromDate=2019-06-01` - all 3 polls
26+
27+
GET: `http://localhost:8080/api/v1/polls/listFrom?fromDate=2020-05-15` - only 2
28+
29+
GET: `http://localhost:8080/api/v1/polls/listFrom?fromDate=2020-06-15` - none
2730
***
2831
## Getting started
2932

@@ -48,7 +51,17 @@ As a timestamp, the date 2020-01-01 is 2020-01-01 00:00, so an initiated timesta
4851

4952
## Technology choices
5053
### Visual Studio Code + Remote Development / Dev Containers
51-
With VS Code Remote Development, you can use a Docker container as a full-featured development environment. VS Code is going to work **as if it was running locally on the Linux container** I chose to develop on. Other tools offer similar solutions of course (mounting the workspace, hot-reload), but I find the extreme approach of hooking the entire "IDE" into a container quite inspiring.
54+
With VS Code Remote Development, you can use a Docker container as a full-featured development environment. VS Code is going to work **as if it was running locally on the Linux container** I chose to develop on. Other tools offer similar solutions of course (mounting the workspace, hot-reload), but I find the extreme approach of hooking the entire "IDE" into a container quite inspiring.
55+
56+
57+
To open the dev container:
58+
- Open the folder in VS Code
59+
- Reopen in container (popup in bottom right of the window)
60+
- Find a Java file, hit F5
61+
- Say yes to Java standard mode (popup in bottom right of the window)
62+
- After a minute and the Java mode switch, you're in - now you're developing on a 'remote' machine. Move it to the cloud and you've got GitHub CodeSpaces.
63+
64+
More about dev containers: https://stuartleeks.com/posts/vscode-devcontainers/
5265

5366
Debugging inside the container:
5467
![](images/2020-10-01-16-15-02.png)

0 commit comments

Comments
 (0)