Giter Site home page Giter Site logo

phonecheckr's Introduction

PhoneCheckr

A single-page application for comparing mobile phone deals

Installation

  1. Clone the repository: git clone https://github.com/GSPanue/phonecheckr.git
  2. Install the dependencies: npm install

Demo

  1. Import mysql_dump.sql into your database

  2. Create a .env file in the backend folder with the following environment variables:

    DB_HOST=127.0.0.1
    DB_USERNAME=your_database_username
    DB_PASSWORD=your_database_password
    DB_DATABASE=your_database_name
    
  3. Generate the frontend and backend production bundles: npm run build

  4. Initialise the server: npm start

  5. Go to: http://localhost:8080

Frontend Development

Getting started

  1. Initialise the local development server: npm run frontend:dev
  2. Go to: http://localhost:8080

Generating the frontend production bundle

You can generate the frontend production bundle by running npm run frontend:build.

Note: The bundle will be output to frontend/dist/js.

Analysing the frontend bundle

After generating the frontend production bundle, you can analyse it by running npm run frontend:analyse.

Testing

You can run all unit tests for the frontend by running npm run frontend:test.

Backend Development

Getting started

  1. Import mysql_dump.sql into your database

  2. Create a .env file in the backend folder with the following environment variables:

    DB_HOST=127.0.0.1
    DB_USERNAME=your_database_username
    DB_PASSWORD=your_database_password
    DB_DATABASE=your_database_name
    
  3. Initialise the local development server: npm run backend:dev

  4. Go to: http://localhost:8080

Generating the backend production bundle

You can generate the backend production bundle by running npm run backend:build.

Note: The bundle will be output to backend/dist.

Analysing the backend bundle

After generating the backend production bundle, you can analyse it by running npm run backend:analyse.

Version

1.0.0

Author

Gurdev S. Panue

phonecheckr's People

Contributors

gspanue avatar

Watchers

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