An angular webapp using local PouchDB database to display welding exercises
Make sure you have Node version >= 8.7.0 and (NPM >= 5.6 or Yarn )
If you have Docker installed in your macchine you can simply start the development docker container with
docker-compose up --build
# clone our repo
git clone https://github.com/rodridiaz/angular-pouchdb.git
# change directory to our repo
cd angular-pouchdb
# install the repo with npm
npm install
# or yarn
yarn install
# start the server
npm start
# or yarn
yarn start
go to http://0.0.0.0:4200 or http://localhost:4200 in your browser
We just want to ship the project lightweight and as performant as possible to the production.
We will archive this in two steps:
- Build: Build the app using Node alpine image
- Serve: By using artefacts after build process and Nginx configs, we will serve the app.
Then, you can build our production image like this:
$ docker build -t angular-pouchdb:prod .
To test it out, you can run that image with the following command and visit http://localhost:8080/ :
$ docker run -p 8080:80 pouchdb:prod
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
- Angular 6.1.0 - The web framework used
- Angular Material - Material Design components for Angular
- PouchDB - A pocket-sized database
- Rodrigo Díaz - Initial work
This project was generated with Angular CLI version 6.2.9.