mern
๐ MERN stack 2.0 - MongoDB, Express, React/Redux, Node
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- config.yml
- help-needed.md
- release.yaml
- index.js
- types.js
- require_auth.js
- signin.js
- signout.js
- signup.js
- account.js
- centerCard363.js
- header.js
- home.js
- public.js
- auth_reducer.js
- index.js
- user_reducer.js
- index.js
- favicon.png
- index.js
- app.js
- index.html
- store.js
- style.scss
- app_test.js
- test_helper.js
- .env.production
- package.json
- README.md
- webpack.common.js
- webpack.dev.js
- webpack.prod.js
- yarn.lock
- app.83e0763ef54ecf87bd8c.js
- vendor.2345bc9d6bc81da25d22.js
- favicon.png
- style.css
- index.html
- manifest.js
- authentication.js
- middlewares.js
- controller.js
- model.js
- router.js
- logger.js
- token.js
- .env.example
- config.js
- index.js
- babel.config.json
- package.json
- README.md
- yarn.lock
- .eslintrc
- .gitignore
- .releaserc.json
- CONTRIBUTING.md
- LICENSE
- package.json
- README.md
- yarn.lock
๐ ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/amazingandyyy/mern
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd mern
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Node.js
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
$ yarn # or npm i
์ด ๋ช ๋ น์ด๋ฅผ ํฐ๋ฏธ๋์ ๊ทธ๋๋ก ์ ๋ ฅํด ์คํํ์ธ์.
$ yarn # or npm i // npm install packages
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
$ npm run dev // run it locally
๊ฐ๋ฐ/์คํ ์๋ฒ๋ฅผ ์ผญ๋๋ค.
$ npm run build // this will compile the react code using webpack and generate a folder called docs in the root level
๋ฐฐํฌ์ฉ์ผ๋ก ์ฝ๋๋ฅผ ์ต์ ํํด์ ๋น๋ ํ์ผ์ ์์ฑํฉ๋๋ค.
$ npm run start // this will run the files in docs, this behavior is exactly the same how gh-pages will run your static site
๊ฐ๋ฐ/์คํ ์๋ฒ๋ฅผ ์ผญ๋๋ค.
๋ช
๋ น์ด ์คํ ํ ํฐ๋ฏธ๋์ ๋ํ๋๋ ์ฃผ์(๋ณดํต http://localhost:3000 ํํ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์ด๋ณด์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
