A full-stack project that handles at least 10k of URL processing request per second.
- Fork or download the zip file; after unzipping, get into the
appfolder, then donpm installnodemon server.js
- Then check out the project at
localhost:3000
- After unzipping the repo, go to
/app. docker build -t 'xxx/tinyurl' ., do not forget the dot at the end. xxx part could be anything.- To run your docker image,
docker run --name tinyurl -p 3000:3000 -d xxx/tinyurl- If your port 3000 is not available (most likely because of NodeJS process is still running), run
killall -9 node
- If your port 3000 is not available (most likely because of NodeJS process is still running), run
docker imagesdocker rm xxxxxx, remove a specific container by IDdocker ps -a, to show all the containers
docker-compose up --build