⬇️ Main Note
The Basic form of database : Table format
table, which containes categories of data as a table in each
Insert into Board(“title”)
values(“This is title!!”)
ORN: Object relative Notation (Relational Mapping)
ODM: Documental Mapping
There are at least 3 server-computers needed to construct a web service.
--> Each frontend, backend, and database has their own port number.
ex) MongoDB: 27017, mySQL: 3306 --> These are just standard port. It's okay to change the number
From one computer, when something is being executed via
node index.js, a port is open.
It's possible to run 3 server computers in one computer.
But running one server per one computer is recommended.
--> Why? :
Copmuters execute the data one by one. But if the traffic gets higher, it gets hard for one computer to confirm all data right away. Meaning, the storage will get full. -> Need more computer.
So when the server is full, another server is open in another computer and let divide the users by each server.
Here, the same program is operated and only the port number is different.
Virtual computer: creating multiple fake computers inside my computer.
// dockerfile FROM node:14 // matching the node version for other users WORKDIR /myfolder/ // Working on /myfolder/ COPY . /myfolder/ // copy all the files inside the current work directory RUN node index.js // 여러번 실행 가능 CMD node index.js // 한번만 실행 가능
0.0.0.0=> Anybody can access to this port number server.
docker ps -a -q // 전체 보기 docker ps -a // 실행중인것 docker rmi `docker images -q` docker system prune -a // => 숨겨져 있는 것까지 모두 지워버리기
yarn.lockfiles should be uploaded in github.
FROM node:14 WORKDIR /myfolder/ COPY ./package.json /myfolder/ COPY ./yarn.lock /myfolder/ RUN yarn install COPY . /myfolder/ CMD node index.js
TMI of the day
>> New MacBook Pro delivered!