Back

Database Schema for Migration

  • 0
  • Databases
  • Tools
  • General
Suiii
11 Apr, 2023, 16:10

multiple function in one project

TL;DR
User is seeking advice on modeling data using AppWrite instead of Laravel. They are unsure of how to model data in AppWrite and whether they should host it on the same server for different workspaces. Suggestions are given to either use code or the GUI for defining the database schema. The user decides to use the GUI through the console. Additionally, instructions are provided on how to use the AppWrite CLI to init functions and create code templates. The user also asks about creating multiple functions in one project, and it is confirmed that it is possible.
Binyamin
11 Apr, 2023, 16:13

Like real project example?

Binyamin
11 Apr, 2023, 16:14

I'm not sure about public one

Suiii
11 Apr, 2023, 16:15

if have . good

Suiii
11 Apr, 2023, 16:15

but if not just sample

Suiii
11 Apr, 2023, 16:15

project supports multiple functions

Suiii
11 Apr, 2023, 16:16

if there is no. i will have a reserarch

Binyamin
11 Apr, 2023, 16:16

Any project in Appwrite supports multiple function You'll just need to create them

Suiii
11 Apr, 2023, 16:17

in dotnet. i will create one function for one .csproj right

Suiii
11 Apr, 2023, 16:17

if i have 10 functions. i will create 10 .csproj

Suiii
11 Apr, 2023, 16:17

like this right

Binyamin
11 Apr, 2023, 16:19

If you have a project Then the process would be like this Create empty folder Then run appwrite init project To connect to your project Then run appwrite init function To create your function Everything will be made for you

For this to work you need to install Appwrite CLI https://appwrite.io/docs/command-line#installation

Then you need to add the desired runtimes in the .env file in the _APP_FUNCTIONS_RUNTIMES variable https://appwrite.io/docs/environment-variables#functions

Then when you'll init function all the code will be created for you

Suiii
11 Apr, 2023, 16:22

each function, i need to this appwrite init function

Suiii
11 Apr, 2023, 16:22

init every function right

Binyamin
11 Apr, 2023, 16:22

Yes

Suiii
11 Apr, 2023, 16:22

okay get it.

Binyamin
11 Apr, 2023, 16:22

👍

Suiii
11 Apr, 2023, 16:22

will try to playaround

Suiii
14 Apr, 2023, 01:50

@Binyamin do you think database schema is better done with manual on GUI or scripting ?

Binyamin
14 Apr, 2023, 01:52

In Appwrite?

I'll probably use the GUI throgh the console

Binyamin
14 Apr, 2023, 01:53

If you would like to define your database sceheme as a code so you'll be able to recreate it easily then, yes use the code Otherwise I suggest you use the GUI

Suiii
17 Apr, 2023, 01:15

okay thank you.

TheIlluminatiMember
25 Apr, 2023, 14:36

Do you guy's have any tips for modeling data using AppWrite? I'm trying to ditch Laravel in favor of AppWrite. I'm a bit new to this. Usually when I model data I create a database migration file where I define fields. That's useful when working on different machines and running the project locally. How do you model data in AppWrite? Should I host my AppWrite and use the same server for different work-spaces?

Drake
25 Apr, 2023, 18:21

It would be best not to revive old threads for a new discussion point. Feel free to create a new <#1072905050399191082> post if you need help

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more