-
First clone the repo from github usign following
command
git clone https://github.com/saif-simform/React-Testing.git
-
It will clone both
frontend
andbackend
code.
-----> Application backend is developed using node.js
as javascript framework and mongodb
as database server
To run application install dependencies first:
Install the dependencies:
npm install
You will find a DB folder in the home directory which contain test_db
database.
import test_db
database into your system using following command.
mongorestore --db=test_db <--path-->
Note: path
could be /home/ubuntu/project/React-Testing/backend/DB
Set the environment variables:
You will find a example.env file in the home directory. Paste the contents of that into a file named .env in the same directory. Fill in the variables to fit your application
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
node admin.js
email: [email protected], password: 123123,
----> Application frontend is developed using React.js
framework with reactstrap
designing library.
To run application install dependencies first:
Install the dependencies:
npm install
Set the environment variables:
You will find a example.env file in the home directory. Paste the contents of that into a file named .env in the same directory. Fill in the variables to fit your application
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3001 to view it in your browser.
email: [email protected], password: 123123,
-
email: [email protected], password: 123123
-
email: [email protected], password: 123123