Giter Site home page Giter Site logo

harjutustodo's Introduction

Todo

Prerequisites

  • nodejs
  • npm
  • git

HTTPS SSL certificate generation:

Creating an SSL Certificate

To configure an SSL certificate, you can either use a public, trusted certificate or a self-signed certificate.

If you’re running the application in a production environment, always be sure to acquire and install a trusted certificate, not a self-signed certificate!

Creating self-signed certificate (for testing)

  1. First, generate a key file to use for self-signed certificate generation with the command below. The command will create a private key as a file called key.pem.
openssl genrsa -out key.pem
  1. Next, generate a certificate signing request (CSR) with the command below. You’ll need a CSR to provide all of the input necessary to create the actual certificate.
openssl req -new -key key.pem -out csr.pem
  1. Finally, generate your certificate by providing the private key created to sign it with the public key created in step two with an expiry date of 9,999 days. This command below will create a certificate called cert.pem.
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
  1. Visit https://localhost:3000 and make your web browser trust your self-signed certificate by clicking advanced and then clicking the link to continue to the website.

Installation

  • run npm install in the root directory
  • run 'npx prisma db push' in the root directory

Running

  • run npm start in the root directory
  • open localhost:3000 in your browser

Testing

  • run npm test in the root directory

harjutustodo's People

Contributors

henno 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.