Skip to content

Starter Code for Webflow-Firebase-TypeScript projects

Notifications You must be signed in to change notification settings

Jeandcc/webflow-firebase-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webflow-IntenseDev-Template

Starter Code for projects of high-complexity that use Webflow, Vue and Firebase

Installation

After cloning this repository, follow the following steps:

  1. Replace all text occurrences of project-xxx with the name of your project (ex: acme-corp-marketing-site).
  2. At the root of the repository, run yarn to install the base dependencies
  3. Still at the root of the repository, run yarn prepare so Husky can be set up
  4. Head over to the Firebase Console and setup the Firebase project that will be used for this project. Note down the project information.
  5. CD into packages/types and run yarn build
  6. CD into the packages/front-end folder, and run the following commands: firebase login:use YOUR_FIREBASE_EMAIL_HERE. This will make firebase use the correct account to deploy the code of this application.
  7. CD into the packages/back-end folder and run the same command you ran in step #6
  8. Register a web app in your Firebase project, copy the configuration provided by Firebase and paste it into packages/front-end/src/services/firebase.ts dev config and prod config. If in the future you decide to setup a new project in firebase to act as a development environment, make sure to replace the value of "devConfig".

Front-End Development

  1. For each new page, update the webpack.config.js file and add new pages under the 'entries' object of the configuration.
  2. When ready to start developing, run yarn dev, write your code, and use the Content Override feature of browsers to override the application scripts with code from your machine.
  3. To see new changes on the page you're working at, keep the developer panel open on your browser and reload the page.

Front-end Installation and Deployment

  1. Update the config object on front-end/services/firebase and any other place that might use firebase.
  2. Update the dev output folder in the webpack.config.js file. Structure it like so: local-{{project-name}}/{{project-domain}}/scripts
  3. Run yarn deploy

Back-End Development

  1. To add new back-end functions to the codebase, just add exported entries to the index.ts file at the root of the src folder.
  2. To work on your back-end functions and test them with the Firebase Shell, open two terminal windows;
  3. From the first terminal window, run yarn start:dev or yarn start:prod;
  4. From the second terminal window, run yarn dev:dev or yarn dev:prod;
  5. Go back to the first terminal window and interact with your back-end functions following Firebase's guide. Example: users.login({email:"[email protected]", password:"12345"})

Back-End Deployment

  1. Run yarn deploy:prod or yarn deploy:dev to have your local changes take effect and be pushed live

About

Starter Code for Webflow-Firebase-TypeScript projects

Resources

Stars

Watchers

Forks