Code Monkey home page Code Monkey logo

smartnote's Introduction

License: MIT

SmartNote

This project was generated with Angular CLI version 1.4.2.

Group Member

Shanfang Zhao Github: Shanfang

Xiaohui Huang Github: CindyHXH

Lujia Yu Github: vicyu666

Haoran Yu Github: jeness

Introduction

SmartNote is a notes app based on Angualr 4, MongoDB and Node.js developed by Group Augo.

Check our demo here at SmartNote.

Features

  • Account management: sign in, sign out.
  • Basic notes: Create, Retrieve, Update, Delete
  • URL notes: generate note from URL automatically.
  • Markdown notes: create a markdown note with its title, tag and content.
  • Archive note: view all archived notes.
  • Classification: classify note by tags.
  • View note: preview url note and markdown note.
  • Edit note: modify markdown note.
  • Delete note.
  • Tag notes: create tags and classify notes by tag.
  • Search notes: search note by keyword or tag.

Development

  1. Install homebrew and nodejs
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
  1. Before run our application, you need to install mongodb.
  • Open the Terminal app and type brew update.
  • After updating Homebrew brew install mongodb
  • After downloading Mongo, create the โ€œdbโ€ directory. This is where the Mongo data files will live. You can create the directory in the default location by running mkdir -p /data/db
  • Make sure that the /data/db directory has the right permissions by running sudo chown -R `id -un` /data/db.
  1. Run mongod in the terminal to start the the Mongo daemon, this step starts the Mongo serever.

  2. Before starting the application, you need to install some dependencies. Please reference the next section for details. Run npm run start to start the application. Navigate to http://localhost:4300/. The app will automatically reload if you change any of the source files.

  3. For Server part, go to folder server by cd server/. Run npm install and npm run dev.

  4. Exit mongo service:

  • To exit the Mongo shell run quit()
  • to quit the Mongo daemon, hit ctrl-c.
  1. Backend Testing:
  • To install Mocha and Chai using npm install -g mocha. npm install chai. npm install supertest --save-dev. And to run backend test in the folder /smartnote using mocha test.js .

Deploy

We deployed our project on a server SmartNote.

Dependencies

For markdown directives, you need to install some libraries.

Install SimpleDEM and Highlight for markdown note features.

  1. navigate to app root directory(./smart-note), run npm install simplemde --save and npm install angular-highlightjs --save to install dependencies for markdown functionality.

  2. navigate to ./server, run npm install nodemon --save

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running backend tests

Run mocha test.js to execute the backend tests via Mocha.

Running unit tests

Run ng test to execute the unit tests via Karma.

Before that, you need to install dependencies of karma-coverage, please run npm install karma karma-coverage --save-dev.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Screenshots

Login

URL Note

Tag

Add Markdown Note

View Note

Modify Note

Review Archived Note

Search

About

smartnote's People

Contributors

cindyhxh avatar shanfang avatar jeness avatar vicyu666 avatar

Watchers

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