Nodejs webapp and webcrawler that reads http://download-soundtracks.com/dmca-policy/ and download in local the latest albums.
https://webspider-soundtrack.herokuapp.com (decommissioned)
Main code
- Install postgree and execute
$ createdb webspider-soundtrack
- Create a db user
psql
CREATE ROLE postgres WITH LOGIN PASSWORD '';
ALTER ROLE me CREATEDB;
- clone
$ git clone https://github.com/altherlex/webspider-soundtrack.git
$ cd webspider-soundtrack
$ touch .env
- Set
.env
file
DATABASE_URL=postgres://user:[email protected]:5432/webspider-soundtrack
[email protected]
LOGIN_PASS=password
- run
$ node init_db createTables
- run
$ node init_db addColumns
$ npm start
check http://localhost:3000
$ git clone https://github.com/altherlex/webspider-soundtrack.git
$ cd webspider-soundtrack
$ docker-compose up
$ docker exec -it webspider-soundtrack_postgres_1 psql -U postgres -c "create database webspidersoundtrack"
$ docker exec -it webspider-soundtrack_app_1 node /usr/src/app/init_db createTables
$ docker exec -it webspider-soundtrack_app_1 node /usr/src/app/init_db addColumns
- Access on http://localhost:5000
- Implement ORM: Sequelize
- Download and make available somewhere on the cloud.
- Heroku has problem running
puppeteer
(headless chrome)