Skip to content

nep0s/capstone-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warm-up

Description

Two-side application usin Nest.js and Next.js to diplay a feed of news extracted from the latest at the Hacker News website.

Environment variables

Docker

The docker-compose.yaml file references and env file (provided by default as axample.env) with the following mongo database information:

/example.env

MONGO_INITDB_ROOT_USERNAME=admin
MONGO_INITDB_ROOT_PASSWORD=pass
DB_URL=mongodb:https://admin:pass@mongo:27017/

URL='mongodb:https://admin:pass@mongo:27017/'

Backend

An .env file must be created in the backend directory with the connection url of the mongo database. For example:

/.env

PORT = 5500

Frontend

An .env file must be created in the frontend directory with the backend url:

/.env

NEXT_PUBLIC_BACKEND_URL=<backend_link>

The name of the variable must start with 'NEXT_PUBLIC_'. If the variable is not defined, 'https://localhost:5500/' will be used instead.

Deploy Developer version

$ sudo service docker start
$ docker compose build
$ docker compose up


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published