Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • F FastAPI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Sitemule
  • Public
  • workshops
  • open source on IBM i
  • FastAPI
  • Wiki
  • Home

Home · Changes

Page history
Update home authored Oct 29, 2021 by Jens Melgard Churchill's avatar Jens Melgard Churchill
Hide whitespace changes
Inline Side-by-side
home.md
View page @ 745753dd
# Get started using Python and FastAPI on IBM i.
First step is to switch branch to "Step-1"
After cloning the repository to your machine, type the following commands, pressing `Enter` after each line...
On the command line, type `git checkout -f Step-1`
Enter cloned folder
You should get a confirmation, similar to this
`cd fastapi`
```
Branch 'Step-1' set up to track remote branch 'Step-1' from 'origin'.
Switched to a new branch 'Step-1'
```
Make sure we are on the right branch ( -f to force )
Confirm folder has changed, by typing `ls -la`
`git checkout -f main`
Now to view the code, type `vim main.py`
\ No newline at end of file
Create a virtual environment for our project dependencies
`python -m venv .venv`
Enter the virtual environment
`source .venv/bin/activate`
Install the packages `wheel`, `fastapi` and `hypercorn`
`pip install wheel fastapi hypercorn`
Create our main python file
`touch main.py`
Anden open it in a editor
`vim main.py`
Proceed to next page
\ No newline at end of file
Clone repository
  • Part 1a. My first service
  • Part 1b. Testing my first service
  • Part 2a. Extending my first service
  • Part 2b. Organise my first service
  • Part 3a. Review my first service
  • Part 3b. Connecting my first service
  • Home