Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 1.67 KB

README.md

File metadata and controls

77 lines (49 loc) · 1.67 KB

Credix Demo

This repository has been scaffolded using Nrwl Nx.

Install dependencies

The project uses yarn as dependency manager. Once you have installed yarn, you can install the dependencies of this repository by running the following command:

yarn

Run the project locally

Postgres DB

Copy/Paste the file .env, rename it to .env.local, and replace the content of the file with the following environment variables.

POSTGRES_PORT=5432
POSTGRES_USER=credix
POSTGRES_PASSWORD=credixpw
POSTGRES_DB=credix

[email protected]
PGADMIN_DEFAULT_PASSWORD=credixpw
PGADMIN_PORT=5050

API_POSTGRES_HOST=localhost
API_HOST=localhost
API_PORT=3333

APP_HOST=localhost
APP_PORT=4200
NEXT_PUBLIC_API_URL=http://localhost:3333/api

Open a terminal and start the Database.

docker compose --env-file ./.env.local up --detach

In the same terminal run the db-schema app for generating the DB schema.

yarn nx run db-schema:serve:production

Kill the process after it finishes.

Web App

Open a new terminal and start the Web App.

yarn nx serve app

API

Open a new terminal and start the Web App.

yarn nx serve api

You can save some time and clicks if you are using VSCode, just run the Task Develop > .vscode/tasks.json

Now you're ready to go: