1
0
tau_frontend/README.md

31 lines
830 B
Markdown

# TauFrontend
App for read Tramontana feeds.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
## Create Nginx Proxy for CORS in Omeka
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
```javascript
server {
listen 80;
server_name oralitat;
access_log /var/log/nginx/omekaApiProxy.access.log;
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Expose-Headers' 'Omeka-Total-Results,Link';
proxy_pass http://oralitatdegasconha.net/culturaviva/;
}
}
```