Files
old-web/README.md

47 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2019-05-16 17:12:17 +02:00
# MarketAlert
2019-01-08 16:50:46 +00:00
2019-03-26 05:06:15 +01:00
The purpose of this project is to build a web application that enables subscribing to notifications when new products are published on various ad based marketplaces. The MVP will be only based on OLX.ba
2019-05-17 09:14:16 +02:00
## Setup
2019-05-16 17:12:17 +02:00
* Before setup please confirm that Docker is installed `docker --version`. If not install it from official site.
2019-05-17 09:14:16 +02:00
### Setup with npm commands
2019-05-17 10:49:13 +02:00
1. Install packages
`npm install`
2. Run setup script
2019-05-17 09:14:16 +02:00
`npm run setup`
this will create and run postgres image and then execute migrations
3. Run app
`npm start` to run app without restart on changes or
`npm run start-mon` to run app with automatic restart on code change
### Manual setup
1. Create postgres docker image
2019-05-16 17:12:17 +02:00
`docker build -t marketalerts .`
2. Run postgres image with
`docker run -e POSTGRES_USER=docker -e POSTGRES_PASSWORD=docker -e POSTGRES_DB=marketalerts --name pg_marketalerts -d -p 5432:5432 marketalerts`
2019-05-15 15:27:10 +02:00
2019-05-16 17:12:17 +02:00
3. Install packages
`npm install`
2019-05-16 17:12:17 +02:00
4. Run migrations from `app` folder
2019-05-17 08:55:36 +02:00
`npm run migrate` or `npx sequelize db:migrate`
2019-05-15 15:27:10 +02:00
2019-05-16 17:12:17 +02:00
5. Run app
2019-05-17 08:55:36 +02:00
`npm start` or `npm run start-mon` to run app with automatic restart on code change
2019-07-02 21:49:56 +02:00
### AWS SES
- AWS SES credentials are handled with env vratiables
- Notification emails are sent in batches of 50, by using SES templates
2019-07-03 15:13:59 +02:00
- Make sure that you are using different templates for different envirorments