This document explains how to create and deploy an application with Firebase. It assumes that you do not use TypeORM since Firebase does not provide SQL databases.
First create an empty project on the Firebase platform.
Then create your project locally.
The CLI displays some prompts:
Hostingoption. You may select other options as well but do not select
Functions(otherwise you will have to delete the
functions/directory just after).
The default static path must be changed to
Create the Foal application.
You can run locally your application using
npm run develop.
npm run developover
firebase servehas the advantage to restart the development server when a file is changed.
Install the dependencies.
Update the file
Create a file named
functions/src/ and export the express application.
Add the file to
firebase.json file to specify that the server should use the previously exported application.