- Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory
git clone https://github.com/<your-username>/atri_python_assignment.git
# Navigate to the newly cloned directory
cd atrilabs-engine
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/Atri-Apps/atri_python_assignment.git- Install python dependencies
# Run the following command from the root directory of your project
pipenv install- Start the virtual environment
pipenv shell- Start the atri development server
atri startThe Atri visual editor will start in localhost:4002 automatically. If it doesn't then open your browser (Chrome preferrably) and visit http://localhost:4002.
- Press
Build & Runon the top right corner of the Atri visual editor.
On pressing Build & Run for the first time, it will take few minutes to complete the installation of some packages from PyPi and npm.
-
Once
Build & Runcompletes, the app will launch inlocalhost:4005. Open the project directory in your favourite code editor to begin writing the backend code. -
Backend of the app is written in
controllers/routes/main.py. When you make any changes in this file and save them, the backend becomes functional. You can now visit the generated app and check the backend in effect. -
[Optional] If you need more information about how to write Python backend using Atri framework, create your first Atri app or create this Machine Learning app.