项目作者: Daskott

项目描述 :
A simple NotePad Application built with react-js
高级语言: JavaScript
项目地址: git://github.com/Daskott/NotePad.git
创建时间: 2017-07-20T09:00:08Z
项目社区:https://github.com/Daskott/NotePad

开源协议:

下载


Note Pad

A simple note pad application built with:

  • es6 (use babel)
  • webpack for packaging client side code
  • expressjs
  • node
  • npm
  • React
  • Redux
  • and MySQL

And then deployed to Heroku: https://notepad-101.herokuapp.com/#

Api Endpoints

  • Get all notes(supports query string) (GET): ‘/api/notes/:start?/:limit?/:order?’
  • Get note by id (GET): ‘/api/note/:id’
  • Add new note (POST): ‘/api/note/add’
  • Update note by id (PUT): ‘/api/note/:id’
  • Delete note by id (DELETE): ‘/api/note/:id’

Setup

  • Create a DB with the name “notepad_development”
    1. $ mysql> create database notepad_development;
  • In the ./NotePad dir, create a “.env” file with the following values:
    1. LOCAL_DATABASE_PASSWORD = YOUR_DB_PASSWORD
  • Install dependencies from terminal
    1. npm install
  • Build project
    1. npm run build

Start web server

  • From your terminal
    1. npm start
  • Access the web app on your localhost:
    1. http://localhost:8080/