Skip to content

Instantly share code, notes, and snippets.

@ziedmahdi
Last active January 11, 2020 09:21
Show Gist options
  • Save ziedmahdi/df9d8d8270d9ba840c2d8ba1f7683df0 to your computer and use it in GitHub Desktop.
Save ziedmahdi/df9d8d8270d9ba840c2d8ba1f7683df0 to your computer and use it in GitHub Desktop.
Get started with Node
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