Skip to content

wolf606/desarrollo-2023-aug-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

August 8, 2023 Node.JS Server

Deploying

Create environment variable

cp .env-example .env

Generate SECRET_KEY

node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"

Set up a Local database

Create database

Run mongosh and create a new database

use aug8

Create user

db.createUser( { user: "manager", pwd: passwordPrompt(), roles: [ { role: "dbOwner", db: "aug8" }] })

Finish .env configuration

Add user and password to the .env file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published