This website is a Next + TypeScript website.
The website is being deployed to Netlify along side serverless functions.
It uses the local version of Modelina, which means that before you run the website, make sure you build Modelina through npm run build:modelina.
Here is a quick overview of where some of the functions for rendering the playground work:
/src/helpers/GeneratorCodecontains all the functions for creating the generator code, shown instead of the options./src/pages/api/functionscontain all the individual generators that when the frontend calls the API/api/generatewill perform the code generation with Modelina.src/components/playground/PlaygroundOptions.tsxis the main component that renders the options based on which output is selected.src/components/playground/optionscontain all the individual react components for showing the output options.src/components/playground/Playground.tsxis the main playground component, and is the one rendered by the playground page.src/components/playground/GeneratedModels.tsxis the playground component responsible for rendering the generated models.
Checkout documentation that explains git-workflow used in our repositories.
- Navigate to the website directory.
cd modelina-website- Install all website dependencies.
npm install- Run the website locally.
npm run dev- Access the live development server at localhost:3000.
You'll be able to access the development server and you can contribute accordingly.