1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-12 11:15:22 +02:00
pigallery2/CONTRIBUTING.md

45 lines
1.7 KiB
Markdown
Raw Normal View History

2021-03-26 22:54:35 +02:00
# PiGallery2 Contribution guide (draft)
## Intro
This project reached to a point when I cannot maintain it alone.
I'm happy to see that some people already submitted some pull requests (PR) so everyone can benefit their changes.
2021-03-26 22:56:38 +02:00
In general, I'm happy to merge PRs, but I recommend filling a ticket and ask first if it is OK.
2021-03-26 22:54:35 +02:00
## How to develop
2021-03-26 22:56:38 +02:00
1. Download the source files
2021-03-26 22:54:35 +02:00
2. install dependencies `npm install`
3. Build client `npm run run-dev`
* This will build the client with english localization and will keep building if you change the source files
4. Build the backend `npm run build-backend`
* This runs `tsc` that transpiles `.ts` files to `.js` so node can run them.
* To rebuild on change run `tsc -w`
* Note: you can skip this test if you use and IDE that supports typescript (e.g.: webstorm, vscode)
5. Run the server `npm start`
## Developer docs
### Project structure
Overview:
```
|-- benchmark --A benchmark tool to test the speed of the app (not needed for development)
|-- demo -- contains some sample photo for https://pigallery2.herokuapp.com/ (not needed for development)
|-- docker -- contains all docker and docker realted configurations (this is the recommended way for app deplyoment)
|-- docs -- webpage for http://bpatrik.github.io/pigallery2/
|-- src -- contains the rource files <-------- This is what you need
|-- test -- contains the unit and integration tets <----- be nice and write tests to your feature
```
2021-03-26 22:56:38 +02:00
Source structure:
2021-03-26 22:54:35 +02:00
```
|-- src -- contains the rource files <-------- This is what you need
|-- backend -- nodejs backend code
|-- common -- shared files (mostly DTOs) between the frontend and the backend
|-- frontend -- angular based frontend
```
TODO...