The first camera was basically a camera obscura in which the experimenter placed some light sensitive material where the image formed on the cameras back.
If you are interesting in the beginning of photography as we know it today, use your favorite search engine an look for "history of photography". It will produce many links which you can follow and learn this doing your own research