GithubHelp home page GithubHelp logo

rahul2810 / what-you-munching Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 967 KB

'What you munching?' is a web application built using Angular 10 (Front End), Node.Js (Back End) & Postgresql (Database). Application collects favorite food along with a link to a description or recipe and stores it in a database. The data is then retrieved and displayed real-time.

JavaScript 16.90% TypeScript 65.78% HTML 16.91% CSS 0.41%
what-you-munching food favourite-food angular nodejs postgresql favourite-food-survey food-survey

what-you-munching's Introduction

What you munching?

'What you munching?' is a web application built using Angular 10 (Front End), Node.Js (Back End) & Postgresql (Database). โœจ

Application collects favourite food along with a link to a description or recipe and stores it in a database. The data is then retrieved and displayed realtime.

what you munchiong screenshot

Pre-requisites:

  1. NPM installed : NPMjs site

  2. Angular CLI installed : npm install -g @angular/cli

  3. Postgresql : Postgresql site (Alternative: other sql databases)

Database Configuration :

The below configuration is written based on Postgresql. For other sql databases tweek as necessary.

  1. Setup database on a postgresql server.

  2. Create a table 'munchit' on the database using the below the script :

CREATE TABLE public.munchit
(
    username text COLLATE pg_catalog."default",
    location text COLLATE pg_catalog."default",
    favouritefood text COLLATE pg_catalog."default",
    foodlink text COLLATE pg_catalog."default",
    id integer NOT NULL DEFAULT nextval('munchit_id_seq'::regclass),
    CONSTRAINT munchit_pkey PRIMARY KEY (id)
)

DB.js Configuration :

  1. Open db.sql at (\what-you-munching\backend\src\db.js) in a code editor.

  2. Modify default database configuration below :

var db = {
  user: 'postgres', //as configured on database
  host: 'localhost', //if running on local
  database: 'what-you-munching', //database name configured on server
  password: '12345678', //as configured on database
  port: 5432,  //port database server is listening to as per server configuration
};

Running App (On Local)

Start Node.js Server

  1. Open Command Prompt & navigate to solution folder. (\what-you-munching\backend)

  2. Run command : npm start (This will start node backend that listens to port 3000 )

Launch Angular Application

  1. Open another Command Prompt & navigate to solution folder. (\what-you-munching)

  2. Run command : npm install (This should install all the dependancies)

  3. Run command : ng serve -o (This will launch a new tab on browser with the active application : http://localhost:4200/)

what-you-munching's People

Contributors

rahul2810 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.