Installation
Permissions
To configure and run the application locally, you need access to the Firebase project feedzback-v2-dev.
Once you have gained access, you will also be able to access the Google Cloud console.
If you don't have permission, please contact Pierre Nicoli or Stéphane Francel.
Server
- Open your IDE in 
<rootDir>/serverdirectory 
Configuration
- Create a 
.envfile with the following environment variables: 
SERVER_PORT=3000
CLIENT_URL=http://localhost:4200
FIREBASE_PROJECT_ID=feedzback-v2-dev
FIREBASE_PRIVATE_KEY=<SECRET_VALUE>
FIREBASE_CLIENT_EMAIL=<SECRET_VALUE>
MAILGUN_USERNAME=<SECRET_VALUE>
MAILGUN_KEY=<SECRET_VALUE>
MAILGUN_URL=<SECRET_VALUE>
MAILGUN_DOMAIN=<SECRET_VALUE>
CRYPTO_SECRET_IV=feedzback
CRYPTO_SECRET_KEY=feedzback
Retrieve these secret values from the Google Cloud Run console (tab "Variables and Secrets").
Installation
- Run the following commands:
 
npm install
npm run start:dev # Start the server in "watch" mode
Visit the URL http://localhost:3000 to check that the server is running properly.
If you just need to start the server once (without "watch" mode), run the command npm start from the <rootDir>/server directory.
Running the command npm run server from the <rootDir>/client directory will have the same effect.
Client
Installation
- 
Open your IDE in
<rootDir>/clientdirectory - 
Run the following commands:
 
npm install
npm start # Start the client in "watch" mode
Finally, visit the URL http://localhost:4200 and enjoy FeedZback! 🚀
Please refer to Local dev environment for other ways to launch the application.