Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OtmaroE/notes-development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes integration local development tool

This repository contains a docker-compose.yml file that will setup three containers.

  1. A postgres database.
  2. The notes-api server.
  3. The notes-web application.

This repo has both notes-api and notes-website as sub-modules.

Clone recursively

To run locally you must also have the code for each internal repository.
To clone recursively, please run:

git clone --recurse-submodules [email protected]:OtmaroE/notes-development.git

Commands.

  1. To run all containers and attach to their output.
docker compose up
  1. To start all containers without attaching to output.
docker compose up -d

Environment variables.

Currently this repo provides an .env file with values already configured to be plug-and-play. Change it in you need to run the apps in different ports.

Seeding the back-end

The back-end doesn't automatically seed the base users and data to local testing.
To run them run the following comand once the api container is runing and healthy:

docker exec notes-api npm run db:seed

About

Local development wrapper for notes-api and notes-web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published