API/Client app to shorten links on MERN.
- Client interacts with user on
5000
port and located at/client
. - API handle Client requests on local port
3000
likelogin
,register
,generate
,get
link and interacts with DB. Located at project's root.
You can see working example here: http://217.16.18.253:5000
Use demo account in case you don't want to register
Email: demo@gmail.com
Password: pass
- Frontend port: 5000
- Backend port: 3000 (for local api requests)
git clone https://git... // clone repo
After cloning repo rename config/default.json.example
to config/default.json
At least set mongoUri
to connect to your DB in default.json
.
If you are running app remotely set baseUrl
corresponding to your domain or IP
npm i // install api deps
npm run client:install // install client deps
npm run client:build // build app front
npm run start // run in production, "npm run dev" for dev