Web Development

IP Geolocation Services

webdev: reddit for web developers - Tue, 06/19/2018 - 16:32

I'm working on a project where we want to automatically select one of two markets for a user based on their IP address, obviously with an option to switch to the other if necessary. If the user is sufficiently far away, we will let the user choose their market, or use the browser geolocation API.

I'm using the Maxmind GeoIP2Lite database, which I like for the fast response nature of it, but I want to have a fallback for when we can't choose a market automatically. For example, our client's office IP address places them very far away, and other IP databases have the correct city.

Does anyone have experience with a reasonably-priced IP geo location service? Or any experience with Maxmind's paid services?

I'm considering using ip-api.com because it seems accurate and the pricing structure is good (I'm not sure how fast I'll burn through requests).

submitted by /u/coolnat
[link] [comments]
Categories: Web Development

Junior Salary Expectations

webdev: reddit for web developers - Tue, 06/19/2018 - 16:20

Any tips on approaching management for a pay rise when you’re not in 20% of the lower bandwidth of the average salary in your area? My male colleagues do not seem to have this lack of incentive.

Length of employment has been a few months at current company, and a few years overall.

submitted by /u/fallenEo
[link] [comments]
Categories: Web Development

Is "continuous integration" and "continuous deployment" possible without a build server? - I build everything locally!

webdev: reddit for web developers - Tue, 06/19/2018 - 16:07

I don't use any Build-Sever like Jenkins, GitLab Pipelines or other Ci/CD tools.

Why we do not just execute a build.sh in a docker-build container to build a project?

I mean if I make a new commit I could always make a new build of that project by just execute the build.sh automatically in my docker-build container. This would include:

  • composer install --no-dev
  • npm install
  • execute tests
  • compile the project (webpack)

If the build is fine I would deploy it via a deploy.sh - A custom script in the build-container which would rsync all build files to the remote server.

I don't see the need of build servers. Yes they are fine and useful but all that I can do locally as well. And if you use docker and build your project in a container even the environment to build your project is the same for all developers.

This is how I execute my scripts:

  • docker-compose exec build-container sh -c "/app/build.sh"
  • docker-compose exec build-container sh -c "/app/deploy.sh"
  • docker-compose exec build-container sh -c "cd /app/ && npm run watch"
submitted by /u/TatzyXY
[link] [comments]
Categories: Web Development

Not sure If it's overkill for me to use Node JS for a simple website... need advice!

webdev: reddit for web developers - Tue, 06/19/2018 - 14:46

I'm making a single page website for a mate. It has a "contact me" form that will send an email when it's filled out with the Node JS module called nodejs-nodemailer-outlook. I'm also loading all the assets with Node JS.

I thought I could just upload this to a hosting site such as GoDaddy but it looks like I will have to pay extra for the ability to use Node JS. I want it to be as simple and cheap as possible for my mate as it's only a landing page for a local tradesman.

Would you be able to advise me what the best thing is to do?

Cheers.

submitted by /u/pooface238
[link] [comments]
Categories: Web Development

What should I study during holiday?

webdev: reddit for web developers - Tue, 06/19/2018 - 14:41

I'm on holiday from my scool, where I study programming. I'm don't know what should I study, I know html, css, php and a bit of javascript and jquery. I'm thinking about make a project with a theme that I like, but I can't think on a good theme and a good design to make the project, so I'm really confusing. Any tips?

Sorry for my very poor english.

submitted by /u/LucasED78
[link] [comments]
Categories: Web Development

Website idea for senior thesis

webdev: reddit for web developers - Tue, 06/19/2018 - 14:35

Hey there, recently I've been struggling to find a suitable theme and idea for website, for my senior thesis, and I must say I've hit a brick wall. So I wanted to ask this community (hope I'm in the right place) to share some ideas to make a simple website, that focuses more on the front-end part, with a little bit of back-end developing. I'll appreciate any kind of advice, thanks!

submitted by /u/iMeteor
[link] [comments]
Categories: Web Development

How long will it take for me to learn web development enough to be able to code a website like Huffington Post or The Guardian?

webdev: reddit for web developers - Tue, 06/19/2018 - 14:11

News Websites and shit like that

How long will it be able to take to HAVE the skills to build websites like those or buzzfeed or medium or stuff like this

submitted by /u/KtoMM199
[link] [comments]
Categories: Web Development

Finding source data used by exposed filters

Drupal - Open Source Content Platform - Tue, 06/19/2018 - 13:53

I've just inherited a drupal site that is for selling very technical components for medical device manufacturers. Most of the site is straightforward. One page involves exposed filters/dropdown menus to help users locate a specific part they are looking for.

Not having used Drupal before, I cannot locate the source of the data that feeds these dropdown filters. This data needs to be updated regularly with new part numbers/new parts/model years etc and so, of course, I need to figure out how.

What should I be looking for, and can it be found through the admin interface?

submitted by /u/Abetterway_thisway
[link] [comments]

Help with ES6 Class syntax and static properties

webdev: reddit for web developers - Tue, 06/19/2018 - 13:36

Hey guys, I'm having a lot of trouble understanding how to accomplish something in the ES6 Class syntax, and was hoping for some help.

I have an ES5 class with a count property that is incremented each time the class is newly instantiated. I want to achieve the exact same thing in ES6 Class syntax.

 

Here's the ES5 code:

ECS.Entity = function Entity () { // Generate a pseudo random ID this.id = (+new Date()).toString(16) + (Math.random() * 100000000 | 0).toString(16) + ECS.Entity.prototype._count; // increment counter ECS.Entity.prototype._count++; return this; }; // keep track of entities created ECS.Entity.prototype._count = 0;

 

I'm just not sure how to implement this in the ES6 syntax. I'm thinking I should be using a static method??

class Entity { id: string; //TODO: increment count here constructor () { this.id = (+new Date()).toString(16) + (Math.random() * 100000000 | 0).toString(16) + Entity.count; } } Entity.count = 0; submitted by /u/bethevoid
[link] [comments]
Categories: Web Development

Price quotes and technology for auction site (similar to ebay)

webdev: reddit for web developers - Tue, 06/19/2018 - 12:45

Hi guys,

so i have to quote a price and think on how to do a ebay similar site: - users registration - add products to auction - payments, get % tax.

I've search for open source auctions but only find webid and kind of seems outdated. Doing from the beggining i would guess it would increase the final cost by a lot (i don't even know the right price to ask).

Can someone help me out? on hour and price estimate? Or even to a pre-made solution?

submitted by /u/cajusky
[link] [comments]
Categories: Web Development

Functions? Or Containers? Paas? Or traditional web server?

webdev: reddit for web developers - Tue, 06/19/2018 - 12:42

I'm about to start a new web project and I don't know which one to choose, or why someone would choose one over the other.

I plan to be the only developer for this one. It's basically a website where our employees can log in their project statuses.

submitted by /u/AskYous
[link] [comments]
Categories: Web Development

Cheap domain and hosting for a personal website?

webdev: reddit for web developers - Tue, 06/19/2018 - 12:37

Hi all! I am looking to create a website for personal use and to put my resume on. What are some good but cheap places I can go to for a domain name and hosting?

submitted by /u/biomacx
[link] [comments]
Categories: Web Development

Wanna start learning CSS all over again

webdev: reddit for web developers - Tue, 06/19/2018 - 12:30

Hi guys,
I'm a Python programmer and i learned recently to make web pages using Flask. I rushed my html/css learning and used Bootstrap but at some point i just felt completely lost with handling Bootstrap elements properties. It was really frustrating.

I wanna start learning css all over so i can have a better mastery on Bootstrap elements and now how to customize them as i want. Should i start making my web pages from complete css scratch? Without even using Bootstrap navbar ? Making my own navbars etc... ?

Thanks guys

submitted by /u/idontneedvariance
[link] [comments]
Categories: Web Development

Pages