Skip to content

🎬 μ˜ν™” 정보λ₯Ό κ²€μƒ‰ν•˜κ³ , μ’‹μ•„ν•˜λŠ” μ˜ν™”λ‚˜ μ‹œμ²­ν•œ μ˜ν™”μ— λŒ€ν•œ 리뷰λ₯Ό 남길 수 μžˆλŠ” μ„œλΉ„μŠ€

Notifications You must be signed in to change notification settings

YounglanHong/Film_Archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎬 Film Archive

ν”„λ‘œμ νŠΈ 정보

0. μ†Œκ°œ

μœ μ €κ°€ μ˜ν™” 정보λ₯Ό κ²€μƒ‰ν•˜κ³ , μ’‹μ•„ν•˜λŠ” μ˜ν™”λ‚˜ μ‹œμ²­ν•œ μ˜ν™”μ— λŒ€ν•œ 리뷰λ₯Ό 남길 수 μžˆλŠ” μ„œλΉ„μŠ€

πŸ”— 배포 링크 : https://film-archive.herokuapp.com/

1. μ„€μΉ˜ 및 μ‚¬μš© 방법

(1) μ½”λ“œ 볡사

λ³Έ λ ˆνŒŒμ§€ν† λ¦¬λ₯Ό https://github.com/YounglanHong/Film_Archive.git μ£Όμ†Œλ₯Ό ν™œμš©ν•˜μ—¬ 둜컬 ν™˜κ²½μ— clone ν•©λ‹ˆλ‹€.

git clone https://github.com/YounglanHong/Film_Archive.git

(2) νŒ¨ν‚€μ§€ μ„€μΉ˜

// ν΄λΌμ΄μ–ΈνŠΈμ™€ μ„œλ²„ ν΄λ”μ—μ„œ 각각 νŒ¨ν‚€μ§€ μ„€μΉ˜λ₯Ό μ§„ν–‰ν•©λ‹ˆλ‹€.
// cd Client & cd Server
npm install

(3) μ‹€ν–‰

// film-archive client 
cd Client
npm start

// film-archive server
cd Server
npm start

2. ν™˜κ²½ μ„€μ •

βš™οΈ ν΄λΌμ΄μ–ΈνŠΈ

  1. API μ„€μ •

https://developers.themoviedb.org/3/

  • πŸ”— TMDB 계정 μ„€μ • νŽ˜μ΄μ§€μ—μ„œ API keyλ₯Ό μ‹ μ²­ν•©λ‹ˆλ‹€.
// src/config.js
// movie api
export const API_KEY = "YOUR_API_KEY";
export const API_URL = "https://api.themoviedb.org/3/";
export const IMAGE_URL = "https://image.tmdb.org/t/p/";
  1. Proxy μ„€μ •
  • CORS μ—λŸ¬λ₯Ό λ°©μ§€ν•˜κΈ° μœ„ν•΄ Proxyλ₯Ό λ―Έλ“€μ›¨μ–΄λ‘œ μ„€μ •ν•©λ‹ˆλ‹€.
npm install http-proxy-middleware --save
// src/setupProxy.js
const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = function (app) {
  app.use(
    "/api",
    createProxyMiddleware({
      target: "http://localhost:5000",
      changeOrigin: true,
    })
  );
};

βš™οΈ μ„œλ²„

  1. 인증 secretKey μ„€μ •

userId + secretKey = token

// config/secretKey.js
export const secretKey = "YOUR_SECRET_KEY";
  1. mongoBD와 μ—°κ²°

// config/dev.js
module.exports = {
  mongoURI:
    "mongodb+srv:YOUR_CONNECTION_STRING",
};

3. μ‚¬μš© μŠ€νƒ

βš’ Front-end

βš’ Back-end

βš’ Database & Deploy

About

🎬 μ˜ν™” 정보λ₯Ό κ²€μƒ‰ν•˜κ³ , μ’‹μ•„ν•˜λŠ” μ˜ν™”λ‚˜ μ‹œμ²­ν•œ μ˜ν™”μ— λŒ€ν•œ 리뷰λ₯Ό 남길 수 μžˆλŠ” μ„œλΉ„μŠ€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published