Try our demo
Take Imagine's demo apps for a spin.
Play around with our and get a feel of our compiler's functionality by running a simple command in your terminal.
Our demo apps will be organized by the key frameworks we support. We currently have a demo app for Django, and as we release support for more frameworks, we will add demo apps for each below.
Here's a simple step-by-step walk through of what you can do with our demo app:
- Copy and paste the command below into your terminal to download our demo django-app on your machine.
Note: running the above command requires the
npmpackage manager being installed on your computer. If you get the error
npm: command not foundwhen you run the command, you will need to install npm first.
You will now be able to see the created files for the demo app when you list the files in the current directory by running
You can install all the dependencies for the Django app by running
make installin your terminal. This will install all project dependencies for Django, REST, GraphQL etc.
You can run your Django app by running
make runin your terminal. This will open a web server at http://127.0.0.1:8000/demo/
You can also open the files that are a part of the Django demo-app in your code editor. In this demo, these are the files that are generated by Imagine's SmartCompiler from a single
django-app.imImagine config file:
- You can now make changes to the
django-app.imImagine config file and use the Imagine SmartCompiler's
compilecommand to generate code with your changes. (learn about the various domains we support and how you can write our simple config syntax for each domain)
As an example, lets open the file
django-app.im and add a new field
rating to one of the Data Models called Album.
You can now run
imagine compile django-app.imto generate new Django code with this change.
This would update a number of files -
demo/models/album.py. For example, if you now look at the file
demo/models/album.py, you will see your newly added field
- You can also check the test coverage for this app (including any updates you make) using the following command. All Imagine generated code has 100% test coverage for unit tests and end-to-end tests 😍
coming soon, with 🧡
coming soon, with 💛
coming soon with 💜