This is a starter template for an Angular2 application with an express JSON API backend. Includes basic authentication.
Docker
- Clone this repo
- Install Docker
- Copy the sample.env file to a file named .env. Change the database passwords and session key if you would like.
- In the directory where you cloned this repo, run the following to start the server
docker-compose up -d
-
On your local machine make sure you have node and npm installed.
-
Install angular-cli
npm install angular-cli
- Start the client.
ng serve
Start with production settings
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
Run tests
docker-compose run --rm test gulp test:server