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:
functionscontains the cloud functionssrccontains the source codeapicontains the api moralis evm proxy routes generatorpofilecontains the users profile management routesstreamcontains the stream routesutilscontains the utility files of functionsindex.tscontains the main entry point of the functions
testcontains the tests
hostingcontains the static files for the hostingextensionscontains the firebase extensionsmoralis-authentication-extensioncontains the authentication extensionmoralis-streams-extensioncontains 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 functions5.yarn install6.cp .env.example .env7. add the values in.env8.cd .. - Login to firebase with
firebase loginusing 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