Coder Social home page Coder Social logo

jalbertsr / todo-app Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 51 KB

๐Ÿ“ TODO-APP project with login and register page using Express.js, Node and Pug

Home Page: https://app-to-do.herokuapp.com/login/

JavaScript 57.55% CSS 17.25% HTML 25.20%
ecmascript6 nodejs express pug javascript css jquery cookies express-session middleware

todo-app's Introduction

NodeJS ExpressJS PugJS ES6 npm

HTML5,CSS3 and JS Standard - JavaScript Style Guide Standard - JavaScript Style Guide

TO DO APP

This project is a simple to-do list app build with Jade/PUG, CSS, jQuery, Express.js at Skylab Coders Academy Full Stack Web Development Bootcamp.

Installation

You can launch the app using some NPM scripts:

  • npm start Will launch the app and will install the npm dependencies automatically
  • npm run dev Will launch the app w/ nodemon so it will restart itself when any file of the project is modified and saved ignoring /data-db folder
  • npm run dev:debug Will launch the npm run dev script w/ lots of debugging info about the app

API Endpoints

All these endpoints will start locally w/ http://localhost:3000

Example: http://localhost:3000/tasks

GET endpoints

[GET] /tasks

[GET] /completed

[GET] /login

[GET] /registry

[GET] /logout

[GET] /error

POST endpoints

[POST] /tasks

[POST] /login

[POST] /registry

PUT endpoints

[PUT] /task/:id

[PUT] /edit/:id

DELETE endpoints

[DELETE] /task/:id

[DELETE] /completed/:id

NOTE

In this project instead of using a formal database the user's email and password are being stored in a raw .txt, as a project complement I decided to use node core module crypto to encrypt and decrypt the personal information, so in consequence at helpers/crypto.js at line 3 I used a randomized ID to set the main keyword on which the algorithm aes-256-ctr will take as a the base to encrypt/decrypt, meaning every time the server is restarted, a new ID will be created and will make old data indecipherable. If you're using this in development change const cryptoPass = createID() to const cryptoPass = 'yourSecretKey'.

todo-app's People

Contributors

jalbertsr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

catabuades

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.