Setting Up Global Config File
To tailor Sameframe Firebase Starter to your specific needs, you'll want to configure the global settings in the globalConfig.js
file. Follow these steps to set up the global config file:
Locate the Config File
Open your project directory, and find the globalConfig.js
file. It's typically located at the root of your project.
Edit Configurations
Open the globalConfig.js
file using your preferred text editor. You'll see various sections within the configuration. Update the values based on your project requirements.
module.exports = {
site: {
title: 'Your SaaS App',
description: 'A brief description of your app.',
siteUrl: 'http://localhost:3000', // Update with your actual site URL
siteName: 'Your App Name',
language: 'en',
supportEmail: 'your@email.com', // Update with your support email
logo: '/your-logo.png', // Update with your logo file path
version: '1.0.0'
},
socials: {
facebook: '',
twitter: '',
instagram: '',
youtube: '',
linkedin: '',
tiktok: '',
email: ''
},
// add your Firebase collections here
firestoreCollections: {
users: '',
organizations: '',
teams: '',
pendingUsers: '',
},
auth: {
enableMultiFactorAuth: false,
providers: {
phoneNumber: false,
emailLink: false,
google: true,
facebook: true,
github: false,
},
},
};
Save Changes
Save the globalConfig.js
file after making the necessary updates.
Additional Customizations
Feel free to add more customizations based on your project's requirements. The globalConfig.js
file is designed to be flexible, allowing you to adapt it to your needs.
Save Changes (Again)
Save the globalConfig.js
file after making any additional customizations.
Conclusion
You've successfully configured the global settings for Sameframe Firebase Starter. Keep in mind that you can always revisit and update the globalConfig.js
file as your app evolves or requires additional customization.