https://github.com/delsner/fcb-hackdays
FCB Hackdays
https://github.com/delsner/fcb-hackdays
Last synced: 11 days ago
JSON representation
FCB Hackdays
- Host: GitHub
- URL: https://github.com/delsner/fcb-hackdays
- Owner: delsner
- Created: 2018-01-03T13:55:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T07:44:28.000Z (about 6 years ago)
- Last Synced: 2025-06-10T21:10:47.553Z (about 1 year ago)
- Language: TypeScript
- Size: 8.38 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FCB Hackdays - DHL Track
## Development web backend/frontend
If desired, you can add a custom host in your hosts file (e.g. `127.0.0.1 db`).
Thus, the server config won't need any more configuration for production.
### Docker development
I recommend using docker because it's just one command and everything is up and running:
Run `docker-compose -f docker-compose.dev.yml up`.
This will fire up a mongodb, backend and frontend and watch files for your local changes.
### Backend development
Only if you prefer developing without using docker.
Run `./install.sh` in the backend directory.
Run `python app.py` in backend root (will watch files and restart server on port `8081` on change).
In order to install new packages, add them to the `requirements.txt` file. If you run the `watcher.py` (default when using docker) they will be automatically installed in the background so you can use them in your app.
### Frontend development
Only if you prefer developing without using docker.
Run `yarn install` in the frontend directory.
Run `yarn start` in frontend root (will watch files and restart dev-server on port `4200` on change).
All calls made to `/api` will be proxied to backend server (default port for backend `8081`), this can be changed in `proxy.conf.json`.
## Production web backend/frontend
Run `docker-compose up` in root. Will start four containers (mongodb, backend, frontend, nginx).