Giter Site home page Giter Site logo

facetamvan's Introduction

facetamvan

A simple facebook client as an example for consuming graph API facebook both from the static website and server using node.js with express.js framework.

This program consist of 2 parts, the API server, and the client side which is a simple static web apps.

Info & Dependencies

Client Side

The client side was built using JQuery, Bootstrap, Axios, and FB SDK JavaScript.

Server

The server was built using framework express.js. Here is the content of the package.json file :

{
  "name": "face-tamvan-server",
  "version": "0.1.0",
  "private": false,
  "public": true,
  "scripts": {
    "start": "node ./bin/www",
    "dev": "nodemon ./bin/www"
  },
  "dependencies": {
    "body-parser": "~1.15.1",
    "cookie-parser": "~1.4.3",
    "cors": "^2.8.4",
    "debug": "~2.2.0",
    "dotenv": "^4.0.0",
    "express": "~4.13.4",
    "fb": "^2.0.0",
    "morgan": "~1.7.0"
  }
}

File and Folder

.
├── README.md
├── client
│   ├── assets
│   │   └── fbsdk.js
│   └── index.html
└── server
    ├── LICENSE
    ├── README.md
    ├── app.js
    ├── bin
    │   └── www
    ├── package.json
    └── routes
        ├── index.js
        └── users.js

How To Run It

To run this apps make sure you have node.js installed on your system. It's recommended for you to install package such as live-server or serve from npm which will be use for serving the client-side app.

Running the server

cd server
npm i
npm run dev

Running the client

cd client
live-server or serve

facetamvan's People

Contributors

tamatamvan avatar

Watchers

James Cloos 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.