GitXplorerGitXplorer
r

realmdb

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
e343fe6912c717093ddf4c171321f16fcd7f165a

Patching mongoose to sort the security warning

rrapzo committed a year ago
Unverified
e6a48f9dd5789070d1044df89131c542db25063a

Tagging changes to main branch

rrapzo committed a year ago
Unverified
23e75595db2f15753ad52b1662f0fe7f24b48df2

Fix user email uniqueness validation

rrapzo committed a year ago
Unverified
c2455d42403f6e3f3b8af56aad912866de9da8ca

Fix some issues around favorites functionality

rrapzo committed a year ago
Unverified
aff375a613cc9fe9d00804bb573c6f62317a3be9

Add backend work for favs, movie details and some good practices cleanups

rrapzo committed a year ago
Unverified
db44cca40af5e45413929c694b0badaee796810b

Add favorites to the fold

rrapzo committed a year ago

README

The README file for this repository.

RealMDB

Pre-requisites

Yarn

Enables using yarn >= 2

corepack enable
corepack prepare yarn@stable --activate

Docker

Boots a local mongodb instance with minimum configuration.

docker-compose up -d database

.env

The .env file is very important in the setup process since it wires everything configuration-wise.

In both packages' root there's a env.default which pack a template for a possible configuration, although there are some changes needed in order to make it work, specially when running in docker containers.

  1. cp packages/<package-name>/.env.default packages/<package-name>/.{env,env.production}
  2. Change the hostnames, such as database and cors to meet the deployed server, such as hostnames:

  • DATABASE_URL=mongodb://127.0.0.1:27017/database to DATABASE_URL=mongodb://database:27017/database
  • CLIENT_URL=http://localhost:5173 to CLIENT_URL=http://localhost:8080

Dependencies

Install all projects dependencies.

yarn

Development

Running the client-side application

yarn app:dev

or

yarn workspace @realmdb/app dev

Running the server-side application

yarn api:dev

or

yarn workspace @realmdb/api dev

Running the production build

docker-compose up -d

The app will be available in http://localhost:8080