XIO's Express server The frontend client can be found here, A production instance can be found here.
- Deta is used for hosting in production, so some scripts/configs are designed around it
- Firebase must be used for authentication
- Deta Base must be used for data storage
- Create a
src/database/deta.ts
file, and export aDeta
instance as default, which is initialized with your Deta project key. - Download a Firebase service account JSON file, and place it in
src/
, naming itserviceAccount.json
- Create a
src/pusher.ts
file, and export aPusher
instance as default, which is initialized with your Pusher app details. - Follow the guide on the client's repo, configuring it with the URL of this server
- Execute some scripts from the table below!
Script | Function |
---|---|
dev | Spin up a development server to use and make changes to |
build | Build a production build of the server to the "dist" folder |
start | Create a production build and boot it with "index.js" |