Grunt is used to build and serve the app.
grunt serve
- Serves the app on http://localhost:9999
- Livereload is added to reload the browser after file changes.
grunt build
- Builds the app to the
dist
folder. - This process resembles the process for production the most.
You don't need to run the Silex back-end locally. Instead, you can connect the Angular front-end to the deployed test environment:
- In config.json: Change the
apiUrl
tohttps://balie-test.uitpas.be/
- The browser will open on http://localhost:9999
- Click login, you will be redirected to the Auth0 login on Test
- Login with your credentials, you will be redirected to the test environment
- Important! Because of security policy changes in Chrome, cookies are not sent cross domain anymore. Here's a workaround:
- When logged in on
https://balie-test.uitpas.be/
, open your DevTools, tab "Application". Go to "Cookies" and find the "PHPSESSID" cookie. - For the "PHPSESSID" cookie: Check "Secure" checkbox, and set "SameSite" to
None
- Open http://localhost:9999
- You should be logged in!