Auction App is a end-to-end implemented classified platform with option of bidding for products in realtime. This is a feature rich repo and was originally part of Crossover's onboarding program (where it was selected).
- Nodejs installed on the platform
- MySQL installed and server running
- All commands and code will run from Code folder onwards. Make sure one has the right path.
- Run - "npm install" to install or Node dependencies.
- Run - "bower install" to install bower dependencies for client side libraries.
- If no error is found (as it is not found for me) Run using cmd - "forever start server.js"
- Open - "http://localhost:3000" in browser to see the Auction App.
Or
Run - "sh appInstallerScript.sh" to install all dependencies, db scripts, npm modules and run the server.
- One should have Nodejs & MySQL (Prerequisites to run the application).
- Enter Values for Mysql as per settings in respective local mysql in the config.js file. The fields are: 2.1 User 2.2 Password [Host, Database and Port will be 'localhost','auctionDb' and '3306'. Please don't change them for proper function of code]
- Run - "node db.js" to initialise database auctionDb and tables. After executing the script will notify.
- After setting up connection with local MySQL you are ready to run the test cases.
- To Run use - "npm test" and it will run all test cases.
- If there was more time sockets and messaging queue like rabbitMq could have been implemented.
- For demo I have used UserName as uniqueId in the application and not any custom generated ID for ease.
- Vaibhav Magon