Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loftwah/apptizle.io
Apptizle.io is a cloud hosted version of Appwrite.io. I have put this together as part of Hacktoberfest.
https://github.com/loftwah/apptizle.io
android appwrite flutter hacktoberfest ios php web
Last synced: 6 days ago
JSON representation
Apptizle.io is a cloud hosted version of Appwrite.io. I have put this together as part of Hacktoberfest.
- Host: GitHub
- URL: https://github.com/loftwah/apptizle.io
- Owner: loftwah
- Created: 2021-09-30T11:29:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-04T08:21:37.000Z (about 3 years ago)
- Last Synced: 2024-10-15T01:21:15.456Z (22 days ago)
- Topics: android, appwrite, flutter, hacktoberfest, ios, php, web
- Homepage: https://apptizle.io
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apptizle.io
![apptizle](https://user-images.githubusercontent.com/19922556/135817613-d829258f-808c-40e2-ba9b-301a98e313cd.png)
I'm not 100% what this is for now but it will be fun :)
## Getting started
You will need a fresh install of Ubuntu 20.04 or similar. I will be using Ubuntu 20.04 for this project so if you are using a different operating system, or distro you'll need to adjust accordingly.
### Install dependencies
Download the install script and install Docker.
```shell
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
```Once Docker is running and you are happy with it, set up Appwrite.
```shell
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:0.10.4
```Appwrite should be up and running now, and you can view it on localhost with the port you have set. The initial sign up page should be displayed.
![chrome_1c2mloGpRr](https://user-images.githubusercontent.com/19922556/135816109-38305986-8e52-4f57-b8ab-bbb2f0944896.png)
To use with NPM (node package manager) you can use the following command. I suggest creating a directory for your project.
```shell
npm install appwrite
```Or for webpack
```json
import { Appwrite } from "appwrite";
```Or to simply use it from a CDN for playing around, or just developing
```html
```
An example of using the Appwrite SDK in JavaScript
```javascript
// Init your Web SDK
const appwrite = new Appwrite();appwrite
.setEndpoint('http://localhost:8098/v1') // Your Appwrite Endpoint
.setProject('615968912d022') // Your project ID// Register User
appwrite
.account.create('[email protected]', 'Password01', 'Dean Lofts')
.then(response => {
console.log(response);
}, error => {
console.log(error);
});// Subscribe to files channel
appwrite.subscribe('files', response => {
if(response.event === 'storage.files.create') {
// Log when a new file is uploaded
console.log(response.payload);
}
});
```