Farm Stack: Difference between revisions
Jump to navigation
Jump to search
Lsokolowski1 (talk | contribs) |
Lsokolowski1 (talk | contribs) |
||
| Line 67: | Line 67: | ||
# sudo apt install mongodb -y ; sudo systemctl enable mongod ; sudo systemctl status mongod ; sudo systemctl start mongod | # sudo apt install mongodb -y ; sudo systemctl enable mongod ; sudo systemctl status mongod ; sudo systemctl start mongod | ||
Inside the project root folder | Inside the project root folder (follow the Trainer's instrs) | ||
python3 -m venv .venv # making virtual environment in python | python3 -m venv .venv # making virtual environment in python | ||
source .venv/bin/activate # activating it | source .venv/bin/activate # activating it | ||
pip install -r requirements.txt # installing dependencies | pip install -r requirements.txt # installing dependencies | ||
cp .env.example .env # Create the '.env' file, i.e. local db config | |||
</div> | </div> | ||
Revision as of 10:46, 16 July 2026
THIS IS A DRAFT
This text may not be complete.
- title
- FARM Stack Course
- author
- Lukasz Sokolowski
FARM Stack Course
FARM Stack Training Materials
Copyright Notice
Copyright © 2004-2026 by NobleProg Limited All rights reserved.
This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise.
Overview
- What is FARM stack?
- FARM vs MERN
FARM acronym
FastAPI Intro
- Fast and fast to code
- Very high performance (like NodeJS or Go)
- Fewer bugs and intuitive
- Reduce of human errors, great editor support (completion, less debugging)
- Easy and short
- easy to use and learn (less docs),
- plenty features from each parameter, etc
- Robust and standards-based:
- production-ready code, automatic interactive docs
- OpenAPI (aka Swagger), JSON Schema, etc
Our Course Plan
In overall
- DAY1 - FARM intro, JS, TS, React.js
- js_mats (bits only) - Typescript
- dev envi(FE)
- react part (hands-on) - React Basics
- DAY2 - MongoDB, FastAPI, connecting with FE (react)
- dev envi(BE)
- db - cli, queries, functions - MongoDB part
- FastAPI - crud, deploying, securing, testing
Exercises for FastAPI part
Collapsed by default, some additional exercs below
Technology Stack
FastAPI (latest stable) Python 3.13+ MongoDB Motor (official async MongoDB driver) Pydantic v2 Uvicorn Python typing Async/await throughout the application
Envi setup
python3 --version # sudo apt update ; sudo apt install python3 python3-pip python3-venv # todo mongosh # sudo apt install mongodb -y ; sudo systemctl enable mongod ; sudo systemctl status mongod ; sudo systemctl start mongod
Inside the project root folder (follow the Trainer's instrs)
python3 -m venv .venv # making virtual environment in python source .venv/bin/activate # activating it pip install -r requirements.txt # installing dependencies cp .env.example .env # Create the '.env' file, i.e. local db config