- Try to change url string from
Uri.parse('http://localhost:5000/')
toUri.parse('http://127.0.0.1:5000/')
- If that didn't work try to go for you local IPv4 address. "But I can't always go and check local ip and hardcode it into my app", you might say. Well, flutter has the workaround for trouble. Use
10.0.2.2
instead of localhost and flutter will dynamically use machines IPv4 in emulator and simulator.
html, body { | |
border:0; | |
margin:0; | |
padding:0; | |
} | |
body { | |
font:100%/1.25 Arial, Helvetica, sans-serif; | |
} | |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
/* | |
Defining the User Model | |
------------- | |
User | |
------------- | |
id: PK | |
username: str | |
*/ | |
const User = sequelize.define("user", { | |
id: { |
Before you can send emails with ColdFusion, a mail server you want to use needs to be set. Configuring the mail server can be done in the ColdFusion Administrator.
If you do not have a mail server of your own, your localhost can act as a mail server. ColdFusion will act normally, but since there is no mail server set up on your localhost, emails will not arrive at their destination. Another option is to use the mail server of Gmail (a Gmail account is required for this). The settings for this mail server can be found at the end of this section.
import mobx from "mobx" | |
import store from "store" | |
export default function(_this) { | |
let firstRun = true | |
// will run on change | |
mobx.autorun(() => { | |
// on load check if there's an existing store on localStorage and extend the store | |
if (firstRun) { |