# Frontend Service
This is the frontend application from cineshare. It is built with React.js.

## Getting started
```
npm start
```

Output when local development server is running:
```
Compiled successfully!

You can now view frontend-cineshare in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://192.168.7.101:3000

Note that the development build is not optimized.
To create a production build, use npm run build.
```

## Requirements
A backend service has to be running locally. Please visit https://gitlab.ost.ch/cineshare/backend for more information.

## Troubleshooting
For local development and testing please uncomment the following lines in `api.js` to match your development backend service.
```
// for local dev
const api_protocol_dev = "http";
const api_host_dev = "localhost";
const api_port_dev = "2222";
const api_fqdn_addr = `${api_protocol_dev}://${api_host_dev}:${api_port_dev}`;

// // for production
// const api_protocol_production = 'https'
// const api_host_production = 'api.cineshare.ch'
// const api_port_production = '443'
// const api_fqdn_addr = `${api_protocol_production}://${api_host_production}:${api_port_production}`
```