Skip to content

An angular webapp using local PouchDB database to display welding exercises

Notifications You must be signed in to change notification settings

rodridiaz/angular-pouchdb

Repository files navigation

AngularPouchdb

An angular webapp using local PouchDB database to display welding exercises

Quick start

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

Deployment

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

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Built With

Authors

  • Rodrigo Díaz - Initial work

This project was generated with Angular CLI version 6.2.9.

About

An angular webapp using local PouchDB database to display welding exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages