Last active
January 11, 2020 09:21
-
-
Save ziedmahdi/df9d8d8270d9ba840c2d8ba1f7683df0 to your computer and use it in GitHub Desktop.
Get started with Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx create-react-app mflix | |
//create backend for api server code | |
mkdir backend | |
cd backend | |
//init a new node project | |
npm init -y | |
npm install nodemon @babel/core @babel/node @babel/preset-env eslint --save-dev | |
echo "node_modules" > .gitignore | |
echo "{ | |
\"presets\": [ | |
\"@babel/preset-env\" | |
] | |
}" > .babelrc | |
//add the startup script in package.json file | |
//"start": "nodemon --exec babel-node src/index.js" | |
npm install morgan express cors mongo mongodb dotenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment