You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep in touch with your friends by sharing photos of special moments, thanks to WASAPhoto! You can upload your photos directly from your PC, and they will be visible to everyone following you.
58
+
59
+
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
60
+
61
+
### Functional design specifications
62
+
63
+
Each user will be presented with a stream of photos (images) in reverse chronological order, with information about when each photo was uploaded (date and time) and how many likes and comments it has. The stream is composed by photos from “following” (other users that the user follows). Users can place (and later remove) a “like” to photos from other users. Also, users can add comments to any image (even those uploaded by themself). Only authors can remove their comments.
64
+
Users can ban other users. If user Alice bans user Eve, Eve won’t be able to see any information about Alice. Alice can decide to remove the ban at any moment.
65
+
Users will have their profiles. The personal profile page for the user shows: the user’s photos (in reverse chronological order), how many photos have been uploaded, and the user’s followers and following. Users can change their usernames, upload photos, remove photos, and follow/unfollow other users. Removal of an image will also remove likes and comments.
66
+
A user can search other user profiles via username.
67
+
A user can log in just by specifying the username. See the “Simplified login” section for details.
68
+
69
+
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
*`cmd/` contains all executables; Go programs here should only do "executable-stuff", like reading options from the CLI/env, etc.
12
96
* `cmd/healthcheck` is an example of a daemon for checking the health of servers daemons; useful when the hypervisor is not providing HTTP readiness/liveness probes (e.g., Docker engine)
@@ -26,32 +110,21 @@ The full version can be found in the "Fantastic Coffee" repository.
26
110
Other project files include:
27
111
*`open-npm.sh` starts a new (temporary) container using `node:lts` image for safe web frontend development (you don't want to use `npm` in your system, do you?)
28
112
29
-
## Go vendoring
30
-
31
-
This project uses [Go Vendoring](https://go.dev/ref/mod#vendoring). You must use `go mod vendor` after changing some dependency (`go get` or `go mod tidy`) and add all files under `vendor/` directory in your commit.
113
+
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
This repository contains the `webui/node_modules` directory with all dependencies for Vue.JS. You should commit the content of that directory and both `package.json` and `package-lock.json`.
41
124
42
-
## How to set up a new project from this template
125
+
## Usage
43
126
44
-
You need to:
45
-
46
-
* Change the Go module path to your module path in `go.mod`, `go.sum`, and in `*.go` files around the project
47
-
* Rewrite the API documentation `doc/api.yaml`
48
-
* If no web frontend is expected, remove `webui` and `cmd/webapi/register-webui.go`
49
-
* If no cronjobs or health checks are needed, remove them from `cmd/`
50
-
* Update top/package comment inside `cmd/webapi/main.go` to reflect the actual project usage, goal, and general info
51
-
* Update the code in `run()` function (`cmd/webapi/main.go`) to connect to databases or external resources
52
-
* Write API code inside `service/api`, and create any further package inside `service/` (or subdirectories)
53
-
54
-
## How to build
127
+
### How to build
55
128
56
129
If you're not using the WebUI, or if you don't want to embed the WebUI into the final executable, then:
docker run -it --rm -p 8081:80 wasa-photos-frontend:latest
171
+
```
172
+
173
+
<!-- CONTRIBUTING -->
174
+
## Contributing
175
+
176
+
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
177
+
178
+
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
179
+
Don't forget to give the project a star! Thanks again!
180
+
181
+
1. Fork the Project
182
+
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
183
+
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
184
+
4. Push to the Branch (`git push origin feature/AmazingFeature`)
185
+
5. Open a Pull Request
186
+
187
+
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
188
+
189
+
<!-- LICENSE -->
73
190
## License
74
191
75
-
See [LICENSE](LICENSE).
192
+
Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
193
+
194
+
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
0 commit comments