# Open to the World

AI Kitchen · Episode 7/8 · 26 min

> Going properly public: environments, one-click deploy, your own domain with DNS and HTTPS, customer accounts, payments, Postgres, Docker and SSH.

- URL: https://academy.stoicsoft.com/en/courses/ai-kitchen/lessons/ep-7-open-to-the-world
- YouTube: https://www.youtube.com/watch?v=Y-_u_YoIxF0
- Tiếng Việt: https://academy.stoicsoft.com/vi/courses/bep-ai/lessons/tap-7-mo-cua-ra-the-gioi

Customers want to pay online and keep their points at both cafés. Lan learns the difference between the test kitchen and the real kitchen, opens the doors with one button, gets an address of her own, builds customer accounts (and sees why passwords are hashed), takes money safely with a payment gateway and webhooks, moves to a bigger order book, packs a lunchbox (Docker) for her own server, and decides what customer data not to collect.

26 new words, from Environment to Consent. Honest note: money and personal data carry legal and security weight. Use a well-known payment provider, and get expert help for anything serious.

## What you will learn

- Development, staging and production environments
- Deploying a website, and your own domain with DNS and HTTPS
- Customer accounts, authentication and password hashing
- Taking payments safely with a payment gateway and webhooks
- Moving from SQLite to Postgres, plus Docker and SSH in plain words
- Privacy: what to collect and what not to

## Chapters

- 0:00 Opening: Out onto the main street
- 1:27 Chapter 1: The test kitchen and the real kitchen
- 4:08 Chapter 2: One button to open the doors
- 7:01 Chapter 3: An address of your own
- 9:55 Chapter 4: Customer accounts
- 12:22 Chapter 5: Taking money safely
- 15:08 Chapter 6: A bigger order book
- 17:26 Chapter 7: The lunchbox
- 20:33 Chapter 8: Keeping customers' secrets

## Vocabulary (26)

- **Environment** — each kitchen with its own tools
- **Development** — the test kitchen on your machine
- **Staging** — the dress rehearsal
- **Production** — the real customers' tables
- **Hosting** — renting a shopfront online
- **Build** — boxing the dish before delivery
- **Preview** — a sneak peek for family
- **Domain** — the shop's name sign
- **DNS** — the phone book: name to number
- **HTTPS** — a sealed envelope with a lock
- **Account** — the membership card
- **Authentication** — checking the card at the door
- **Password hash** — a blended password
- **Payment gateway** — the bank's card machine, online
- **Webhook** — the bell that rings the shop
- **Sandbox** — test mode with toy money
- **SQLite** — the counter notebook
- **Postgres** — the head-office ledger
- **Migration** — copying the old book into the new
- **Docker** — the lunchbox packing service
- **Container** — a running lunchbox
- **Server** — a kitchen you rent
- **SSH** — the back-door key
- **Privacy** — the right to your own information
- **Personal data** — information about one person
- **Consent** — the customer's agreement

## Try it now

1. Open the Env Manager, see which env files your project has, and check that secret keys are hidden.
2. Deploy a Preview of your project, open the link on your phone, and ask someone at home to taste it.
   - Prompt for the AI: `Help me deploy a preview of this project to Vercel, and explain each step you take.`
3. Think of three domain names for your project, check whether they're free, then click the padlock on a site you use often.
4. Ask your chef whether your project stores passwords as hashes.
   - Prompt for the AI: `Check for me: are user passwords in this project stored as hashes? Explain it in plain words.`
5. In the HTTP panel, create two environments, Local and Staging, and switch between them to see the request address change.
6. Click a database file (.db) in the file tree to open it in the Database panel, then look at its tables and count the rows.
7. Open the Docker Manager and the SSH Manager in 1DevTool. Just look, no need to run anything.
8. Ask your chef to list every piece of information your app asks users for, then cross out what you don't truly need.
   - Prompt for the AI: `List all the personal data this project collects, and suggest removing anything that isn't truly needed.`

## Transcript

https://academy.stoicsoft.com/md/en/courses/ai-kitchen/lessons/ep-7-open-to-the-world?transcript=1

---

Previous: [Rush Hour](https://academy.stoicsoft.com/en/courses/ai-kitchen/lessons/ep-6-rush-hour)
Next lesson: [From Café to Company](https://academy.stoicsoft.com/en/courses/ai-kitchen/lessons/ep-8-from-cafe-to-company)
