Giter Site home page Giter Site logo

rahmatcmos / angular-7-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from me-io/angular-7-starter

0.0 1.0 0.0 1.08 MB

Ready to use boilerplate project for Angular applications.

License: MIT License

HTML 24.95% TypeScript 71.92% CSS 1.41% JavaScript 1.72%

angular-7-starter's Introduction

Angular Full Stack

The frontend is generated with Angular CLI. The backend is made from scratch. Whole stack in TypeScript.

Travis Status Software License Dependencies devDependencies Donate

Prerequisite

Uses

Prerequisites

  1. Install Node.js and MongoDB
  2. Install Angular CLI by running the following command:
npm i -g @angular/cli
  1. From project root folder install all the dependencies by running the following command inside your terminal:
npm install

Run the app

Development mode

By running the following command a window will automatically open at localhost:4200. Angular and Express files are being watched. Any change automatically creates a new bundle, restart Express server and reload your browser.

npm run dev

Production mode

To run the project with a production bundle and AOT compilation listening at localhost:3000 run the following command:

npm run prod

Deploy to Heroku

  1. Go to Heroku and create a new app
  2. Install Heroku CLI
  3. Run the following command to login to heroku:
heroku login
  1. Open the root directory of the project inside your terminal by running:
cd my-project/
  1. Inside of the project running the following command will creates a new Git repository
git init
  1. Update your heroku app name by running the following command:
heroku git:remote -a your-app-name
  1. Download this repo and copy all files into my-project folder
  2. Now Edit .gitignore and remove line with /dist text.
  3. Edit .env and replace the MongoDB URI with a real remote MongoDB server. You can create a MongoDB server with Heroku or mLab.
  4. Install the dependencies by running the following command:
npm install
  1. Now build your app by running one of the following command:
ng build -prod 
>> or 
ng build -aot -prod
  1. Run the following command
tsc -p server
  1. Make a new commit and push the changes to heroku by running the following commands:
git add . 
git commit -m "Going to Heroku"
git push heroku master
  1. Now following command will open with your app inside your browser:
heroku open

Running tests

Run the following command inside your terminal to execute the unit tests via Karma.

npm run test

Contributors

A huge thanks to all of our contributors:


Mohamed Meabed

๐Ÿ’ป ๐Ÿ“ข

Zeeshan Ahmad

๐Ÿ’ป ๐Ÿ› โš ๏ธ ๐Ÿ“–

License

The code is available under the MIT license.

angular-7-starter's People

Contributors

ziishaned avatar meabed avatar

Watchers

Rahmat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.