Skip to content

psy15/atri_python_assignment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up the project

  1. 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
  1. Install python dependencies
# Run the following command from the root directory of your project
pipenv install
  1. Start the virtual environment
pipenv shell
  1. Start the atri development server
atri start

The Atri visual editor will start in localhost:4002 automatically. If it doesn't then open your browser (Chrome preferrably) and visit http://localhost:4002.

  1. Press Build & Run on 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.

  1. Once Build & Run completes, the app will launch in localhost:4005. Open the project directory in your favourite code editor to begin writing the backend code.

  2. 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.

  3. [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.

About

Starter code for the python assignment

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.5%
  • TypeScript 18.4%
  • JavaScript 6.2%
  • Other 0.9%