Git Product home page Git Product logo

notes-old's Introduction

Check out ๐Ÿ““ Amb-Notes-NEW for a better code redesign and real backend !

๐Ÿ““ Amb-Notes-Old

Public notes sharing web application. View Demo

amb-notes-screenshot

Table of contents

Introduction

  1. What is this ?

This is a simple VueJS app where users can register and login to post public notes that are shown in the homepage feed.

  1. What is it for ?

This project can be used for learning purposes or as a starter template for building similar applications.

Getting started

  1. Clone the repo and Install the dependencies:
cd [somewhere]
git clone https://github.com/Ambratolm/amb-notes.git
cd amb-notes
npm i
  1. Install JSON Server Auth globally:
npm i -g json-server-auth
  1. In package.json file, Go to scripts. In serve and serve-db scripts, Change the host and port to your likings. You can replace app.ambratolm.com and db.ambratolm.com with localhost or any localhost aliases you have defined in your system.
  "scripts": {
    "serve": "vue-cli-service serve --open --host=app.ambratolm.com --port=2020",
    "serve-db": "json-server-auth db/db.js --routes=db/routes.json --watch --delay=2000 --host=db.ambratolm.com --port=2021"
  }
  1. Run the app server:
npm run serve
  1. Run the fake database server:
npm run serve-db

Deployment

To deploy the project in a node environment:

  1. Push the repo to a node server using a service like Heroku.

  2. Install the dependencies:

npm i
  1. Build the app:
npm run build
  1. Start the app:
npm start

You can also do the same to deploy locally.

If you want to start the app and watch for changes in server.js file, install nodemon globally:

npm i -g nodemon

then start the app with monitoring mode:

npm run start-m

Technologies

The initial project was generated using Vue CLI tool.

Frontend

This app is mainly powered by:

  • VueJS (JS framework) with its integrated packages: - Vue Router (For routing) - Vuex (For centralized state management)

The app GUI is powered by:

The app is using these utilities:

Backend

No real backend used for the moment.

The backend API and Data are similated using:

For deploying the demo, a node server was created using:

Features

Authentication

  • As visitor you can register
  • As visitor you can login and logout
  • As user you can edit your account data

Notes Feed

  • As visitor you can view all notes
  • As user you can post, edit and remove a note

User Profile

  • As user you have a profile page that shows all of your notes
  • As user you can view other users profile pages
  • As user you can edit your profile page

Data Models

User

Name Type Rules
id text [ primary-key ]
email text [ required ][ unique ] [ format: email ]
password text [ required ][ length: 8-80 ]
name text [ required ][ length: 3-30 ]
description text [ length: 0-100 ]
avatar text [ format: url ]
role text [ values: "", "admin" ]

Note

Name Type Rules
id text [ primary-key ]
userId text [ foreign-key: user ]
date text [ format: datetime ]
title text [required][ length: 3-30 ]
content text [required][ length: 10-1000 ]

notes-old's People

Contributors

ambratolm avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

royalamrah

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.