APPWRITE HACKATHON
A Simple DOCKET APPLICATION using Appwrite and javascript. If we simply want to try out try out this App, go ahead and check out the code,
Getting Started
INSTALL APPWRITE
Follow us our simple Installation Guide to get Appwrite up and running in our system.
we need to make a few configuration changes to your Appwrite server for the project.
1.Add a new Web App in Appwrite and enter the endpoint of your website.
(localhost, <project-name>.vercel.app etc)
2.Create a new collection with the following properties.
- Attributes Add the following attributes to the collection.
Note:
make sure that your Attribute ID exactly matches the key in
the images.
- Add the boolean Attribute.
PERMISSION: Add the following permissions to your
collection.These permissions ensure that only registered users
can access the collection.
For CMD code:
docker run -it --rm ^
--volume //var/run/docker.sock:/var/run/docker.sock ^
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
--entrypoint="install" ^
appwrite/appwrite:0.13.4
use the code while installing the APPWRITE in CMD.
and use the code in powershell as,
For Powershell code:
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.13.4
DEPLOY THE FRONT END
you have two options to deploy the front-end and we will cover both of them here. In either case, you will need to fill in these environment variables that help your frontend connect to Appwrite.
VITE_APP_ENDPOINT-Your Appwrite endpoint.
VITE_APP_PROJECT-Your Appwrite project ID.
VITE_APP_COLLECTION_ID-Your Appwrite collection ID
Run locally
Follow these instructions to run the demo app locally
$ git clone https://github.com/appwrite/todo-with-vue
$ cd todo-with-vue
Run the following command to generate your .env vars
$ cp .env.example .env
Now fill in the envrionment variables we discussed above in your .env
Now run the following commands and you should be good to go,,
$ npm install
$ npm run dev
GITHUB REPOSITORY
https://github.com/maturusupriya/Docket.git
Submission Category:
WEB2 WIZARDS
Link to Code
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
POST THE DOCUMENT IN CSS USING .js
Top comments (0)