Debate where only valid comments get attention.
- Setup Appwrite server
- Create project
almostKialo
- Install Appwrite CLI
- Login with
appwrite login
- Enter
cd backend
- Deploy database structure with
appwrite deploy collection
- Deploy database seeds with
sh seed.sh
- Deploy functions with
appwrite deploy function
- Set variables on deployed functions. There is
backend/functions
folder for each function. They all haveREADME.md
describing what variables they need - Setup
GitHub
OAuth provider
- Install libarries
npm install
- Update
endpoint
insrc/lib/appwrite.ts
(Appwrite endpoint from server setup) - Start server
npm run dev
- Deploy frontend and backend on the same domain. For example,
myapp.com
andappwrite.myapp.com
- Add frontend hostname as a platform in Appwrite project
- Add trusted users to
mods
team. They can delete any discussion - On trusted user, set
isMod=true
their prefs
When contributing to backend-related logic, make sure to sync-up backend/appwrite.json
by running the appwrite init
commands in the backend
folder.
Everything you need to build a Svelte project, powered by create-svelte
.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.