- nodejs
- npm
- git
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!
- 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
- 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
- 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
- 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.
- run
npm install
in the root directory - run 'npx prisma db push' in the root directory
- run
npm start
in the root directory - open
localhost:3000
in your browser
- run
npm test
in the root directory