This is the server side of Geist
.
Powered and hosted by Firebase
.
Before you start you have following these simple steps to setup Geist Server
correctly.
- Create the Firebase Project
- Activate E-Mail/Password registration method
- Restrict the browser key. Go to the Google API Console and select the browser key.
- Enable only your Firebase Project domains.
- (Optional but recommended) Enable Firebase Dynamic Links. First you need to go to the dynamic links section in your Firebase console and create a new domain prefix (
*.page.link
are free to use). Then you have to addd the domain prefix to thelinkInfo.domainUriPrefix
variable inside theshortener.js
Note: For the first time you are finish here. Deploy the App and execute
Geist
client. Follow the steps on Geist - creating a User.
- (Optional but recommended) Restrict your created user.
- (Optional but recommended) Set storage permissions.
Copy the credentials from your Firebase Project into the firebase_base.js
.
See Add Firebase to your Project
.
After you have installed the Firebase CLI tool
npm install -g firebase-tools
You can just run
firebase deploy --project $YOUR_🔥BASE_PROJECTID
If we update the server it is mandatory to update the version file.
The version number should follow these specs.
The name is just a random name and will be generated with this tool.
Don't use a prefix and suffix. The dictionary should point to US Countries
After we published we have to create a GitHub Release.
For that we needed a tag which will be named as release/vX.X.X
.
The X.X.X represent the version we specified with the step above.
It is also necessary to add a changelog.