This project contains the server for the Palm project based on firebase services.
Palm backend is based on the following firebase services:
The project is structured as follows:
functions
contains the cloud functionssrc
contains the source codeapi
contains the api moralis evm proxy routes generatorpofile
contains the users profile management routesstream
contains the stream routesutils
contains the utility files of functionsindex.ts
contains the main entry point of the functions
test
contains the tests
hosting
contains the static files for the hostingextensions
contains the firebase extensionsmoralis-authentication-extension
contains the authentication extensionmoralis-streams-extension
contains the streams extension
To start the project you need to have the following installed:
- Clone the project
- Install the dependencies with per module
3. For functions
4.
cd functions
5.yarn install
6.cp .env.example .env
7. add the values in.env
8.cd ..
- Login to firebase with
firebase login
using your Google account (you need to be a member of the projectoedi-a1953
) - Select the project with
firebase use oedi-a1953
- Deploy the project with
- if you want to deploy all the services
firebase deploy
- if you want to deploy only function
firebase deploy --only functions
- if you want to deploy only hosting
firebase deploy --only hosting
- if you want to deploy only extensions
firebase deploy --only extensions
- if you want to deploy all the services
To run the project locally using the firebase emulators firebase emulators:start