Build your portfolio website with Mongodb, Express, React and NodeJs.
Live : LIVE DEMO
-
Clone the repo to your local derectory.
-
cd local_dir
then install dependency forserver
-
cd client
install dependency for the client. -
Create 2
.env
file for envirement variable. -
First one in the root directory and second one in the client derectory.
a. In the root directory add these
env
variables.i. DB_URL=your_db_url ii. PORT=4000 iii. UPLOAD_FOLDER_URL=http://localhost:4000/server/uploads iv. UPLOAD_FOLDER=server/uploads v. NODE_ENV=development
a. In the
client
directory add theseenv
variables.i. REACT_APP_API_URL=http://localhost:4000 ii. REACT_APP_URL=http://localhost:3000 iii. REACT_APP_WEBSITE_NAME=app_name
-
After adding these variable properly now your app is ready for developement. run
npm run dev
from root directory.