jquery - Static S3 site using AngularJS and database (simple online store) -


this more question of possibility, more nitty-gritty of how.

i'd build pseudo dynamic website can host entirely on static server (assume aws s3), possible achieve below on static machine? cost associated full nginx/apache server these small apps, hence looking option.

  • simple database of items, cost (can updatable json/third-party db)
  • list above items on simgle page
  • add items cart
  • push items payment system (paypal/stripe work)
  • callback payment system mark item sold

basically singe-layer online store, no storage of user details. simply, see something, buy it, mark sold.

you could think biggest problem without having secure executable server code you'd unable secure database passwords or auth tokens paypal/stripe. so, able have direct unequivocal access database. make app extremely liable attack. example, go site, @ javascript code credentials database, , log in , drop tables. suddenly, gone. additionally, access paypal/stripe refund or transfer dollars out account. dangerous not have these variables secured, , way (that know of) secure variables put them in server side file couldn't read users.

as cost of server, can start t2.nano ec2 server , $(.0065*24*365), less $57 per year. can shared hosting other sites around price well. don't need ton of processing power, authentication , database modification. , way can secure database credentials , api tokens using environment variables.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -