Code Monkey home page Code Monkey logo

devflix_learn's Introduction

devflix

A platform to recap all video content

devflix-api

Videos CRUD

Endpoint HTTP Description
/videos GET Retrieve all the videos
/videos/:id GET Retrieve an specific video with id
/videos POST Create a new video
/videos/:id PUT Update a existing video
/videos/:id DELETE Remove a video

Steps

  1. git init
  2. npm init
  3. .gitignore from gitignore.io
  4. Use express for the REST: npm i express
  5. Create README
  6. Create LICENSE from MIT LICENSE
  7. Install linters: npm i -D eslint eslint-config-prettier eslint-plugin-prettier prettier// development
  8. Install nodemon npm i -D nodemon for auto reload the server
  9. Create .eslintrc and .prettierrc
  10. Create index.js
  11. Add scripts in package.json
"scripts": {
  "dev": "nodemon index.js",
  "start": "NODE_ENV=production node index.js"
}
  1. Add library husky to prevent bad commits : npm i -D husky. Configure it in package.json
  2. Add config folder and index.js for App configuration
  3. Add npm i -D dotenv and configure the .env file and config โ˜๏ธ file
  4. Create routes in routes folder
  5. Create services folder, where we add the functions that will call the DB
  6. Create lib/db.js to connect it to the DB

devflix_learn's People

Contributors

jchuerva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.