Skip to content

A web based real-time painting application based on Angular4, Express and MongoDB

License

Notifications You must be signed in to change notification settings

adamhalasz/paint

Repository files navigation

A painting application based on Angular 4 & Express 4 and MongoDb. The project has 2 parts. An Angular Universal Frontend and an Express/Mongodb based API Backend.

Painting Angular/Express/Mongodb App Image

Features

  • Login & Signup with username/password
  • Create, read and delete boards
  • Paint to boards with mouse down/up events
  • Paintings get saved to MongoDB
  • Paintings are broadcasted to all listening visitors in real-time
  • Browser latest Boards and Users

Prerequisites

Packages in this seed project depend on @angular v4.0.0. Older versions contain outdated dependencies, might produce errors. Also, please ensure that you are using Typescript v2.1.6 or higher.

Installing, Building and Running the Angular Frontend

# clone the repo
git clone https://github.com/adamhalasz/drawer.git
cd drawer

# use npm (or yarn) to install the dependencies
npm install

# dev build (SPA / lean Angular)
npm run build:spa-dev
# prod build (SPA / lean Angular)
npm run build:spa-prod

# start the server (SPA / lean Angular)
npm run serve:spa
# start the server (SPA / lean Angular, with HMR support)
npm run serve:spa-hmr

# dev build (Universal)
npm run build:universal-dev
# prod build (Universal)
npm run build:universal-prod

# start the server (Angular Universal)
npm run serve

Installing and Running the Express API

# navigate to the api folder within the project
cd ./src/api

# use npm (or yarn) to install the dependencies
npm install

# start the api server  
node index.js

Navigate to http://localhost:1337 for lean Angular (client-side rendering) and http://localhost:8000 for Angular Universal (server-side rendering) in your browser.

ng-seed/spa

This project was based on the ng-seed/spa repository. A project for Angular Universal apps following the common patterns and best practices in file and application organization, providing the following features:

Built with @angular v4.1.0, bundled with gulp v4.0 and webpack v2.5.1.

License

The MIT License (MIT)

Copyright (c) 2017 Adam Halasz

About

A web based real-time painting application based on Angular4, Express and MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published