Environmental Variables
In designing MERNKIT I wanted the platform to be as plug and play as possible. Therefore, the setup is almost entirely managed by setting environmental variables. For development, you will edit the nodemon.json file. Depending on how you deploy your platform into production you will need to copy this information into a different area. I will share documentation on how to setup MERNKIT on AWS at the end of the section.
Your nodemon.json file will contain the following empty variables that must be filled out. I will put descriptions where your variable value should go.
Callback values can be left as is provided you configure Google and Facebook with the same URLs.
FRONTEND_URL value can also be left as is in the default configuration.
COOKIEDOMAIN should be left as localhost for testing. This should be set as the top level domain so the frontend has access to the cookie sent by the backend if you are using different subdomains for the frontend and backend. For example api.mernkit.com (backend) /app.mernkit.com (frontend)
Last updated