- Clone the repository:
git clone https://github.com/GSPanue/phonecheckr.git
- Install the dependencies:
npm install
-
Import
mysql_dump.sql
into your database -
Create a
.env
file in thebackend
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
-
Generate the frontend and backend production bundles:
npm run build
-
Initialise the server:
npm start
-
Go to:
http://localhost:8080
- Initialise the local development server:
npm run frontend:dev
- Go to:
http://localhost:8080
You can generate the frontend production bundle by running npm run frontend:build
.
Note: The bundle will be output to frontend/dist/js
.
After generating the frontend production bundle, you can analyse it by running npm run frontend:analyse
.
You can run all unit tests for the frontend by running npm run frontend:test
.
-
Import
mysql_dump.sql
into your database -
Create a
.env
file in thebackend
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
-
Initialise the local development server:
npm run backend:dev
-
Go to:
http://localhost:8080
You can generate the backend production bundle by running npm run backend:build
.
Note: The bundle will be output to backend/dist
.
After generating the backend production bundle, you can analyse it by running npm run backend:analyse
.
1.0.0
Gurdev S. Panue