Platform for Ladybird
* Angular 9 frontend
* .NET Core 3.1 backend
* MariaDB
* LocalStack (for AWS)
* Docker
#Build and run local environment the first time (includes all migrations).
./run.sh --first
#Rebuild API container after changes (quick rebuild and run)
docker-compose up --build --detach api
#Restart UI container (if something goofy happens)
docker-compose restart ui
#Rebuild and run all containers without resetting DB
./run.sh
#Update database with latest migrations. Good if you've pulled changes and need to update the database.
./run.sh --migrations
#Update database with latest migrations and build and run when finished
./run.sh --migrations --run
#Start over with clean local environment, with a fresh, up-to-date database.
./run.sh --reset
- Angular App – http://localhost
- API – http://localhost:81
- AWS Services – http://localhost:4566
- Localstack Dashboard – http://localhost:8080
- Search for
ladybird
and replace it with your project name as appropriate. - Set a different database password
docker-compose.yml
- DB Service
- Root password
- App password
- DB Service
appsettings.Development.json
connection string in API project
- Go into
browser
- Run
nvm install
to be on the right version of Node (installnvm
if you don't have it) - Run
npm update
to updatepackage-lock.json
to latest versions (gives a nice list of updates and versions). - Run
npm install
to updatepackage-lock.json
to latest versions of everything that didn't update. - Peg versions in
package.json
to the versions that were downloaded (so that dependencies don't continually shift throughout the life of the project)
- Run
- Commit to new repo!
Frontend code is in browser
directory. Additional documentation here. Like all documentation, it's probably out-of-date.
Backend code is in server
directory. Additional documentation here. Like all documentation, it's probably out-of-date.
Helpful scripts are in bash
directory. The code is the documentation.