Giter VIP home page Giter VIP logo

comp2537_assignment1's Introduction

COMP2537_Assignment1

A simple website using Node.js that connects to an encrypted MongoDB database to store the users with their names, emails and passwords.

 Author: Ebod Shojaei
 Version: 1.0

Features:

  • A home page links to signup and login, if not logged in; and links to members and signout, if logged in.

    Includes:

    • use of parametrized query searches for protection against nosql-injection attacks.
    • use of collation option for case insensitive querying of 'name' in user info to prevent writing duplicate names into the database.
    • use of lowercase method for submitted emails to prevent writing duplicates into the database.
  • A members page that displays 1 of 3 random images stored on the server.

    The members page will redirect to the home page if no valid session is found.

  • The signout buttons end the session.

  • All secrets, encryption keys, database passwords are stored in a .env file.

    The .env file is NOT in the git repo for obvious security reasons.

  • Password is BCrypted in the MongoDB database.

  • The site is hosted on Cyclic, a hosting service.

  • A 404 page "catches" all invalid page hits and that sets the status code to 404.

  • Session information is stored in an encrypted MongoDB session database. Sessions expire after 1 hour.


Resources


comp2537_assignment1's People

Contributors

ebodshojaei avatar

Stargazers

 avatar

Watchers

Kostas Georgiou 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.