- First clone the repo
git clone https://github.com/Davidcreador/url-shortener.git
cd
into server folder and install npm modulesnpm install
oryarn
cd
into client folder and install npm modulesnpm install
oryarn
- After these steps now in each folder you can run
yarn start
ornpm start
to run the application - If you want to make changes in the server folder you can use this script
yarn run dev
to run nodemon to run restarts in the server automatically - Provide an
.env
file to add environment variablesHOST
-PORT
-DB_URI
are the ones I am using for this app to run properly - To seed the database you can go to the server
http://localhost:8080/db/seederbot
and it will run and populate the database with data of urls.
- Using ExpressJs and MongoDB with Mongoose.
- Using ReactJs using create-react-app and axios to make fetch requests
- Also it is using service workers to work offline