Skip to content

Commit

Permalink
Merge pull request #204 from MartinsOnuoha:CHORE-update-landing
Browse files Browse the repository at this point in the history
🚑 (index.hbs) update landing
  • Loading branch information
MartinsOnuoha authored Jan 10, 2025
2 parents 7b0d6e1 + a194693 commit eb4e296
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const logger = require('morgan');
const swaggerUi = require('swagger-ui-express');
const rateLimit = require('express-rate-limit');
const corsConfig = require('./config/cors');

const rateLimit = require('express-rate-limit');
const rateLimitConfig = require('./config/rateLimit');

const rateLimiter = rateLimit(rateLimitConfig);

const indexRouter = require('./routes/index');
Expand Down
18 changes: 9 additions & 9 deletions bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ app.set('port', port);

const server = http.createServer(app);

/**
* Listen on provided port, on all network interfaces.
*/

server.listen(port);
server.on('error', onError);
server.on('listening', onListening);

/**
* Event listener for HTTP server "error" event.
*/
Expand Down Expand Up @@ -93,6 +85,14 @@ function onListening() {
const bind = typeof addr === 'string'
? `pipe ${addr}`
: `port ${addr.port}`;
console.log(`Listening on ${bind}`);
console.log(`Listening on ${bind}: http://127.0.0.1:${addr.port}`);
debug(`Listening on ${bind}`);
}

/**
* Listen on provided port, on all network interfaces.
*/

server.listen(port);
server.on('error', onError);
server.on('listening', onListening);
6 changes: 3 additions & 3 deletions model/countriesAndCities.js
Original file line number Diff line number Diff line change
Expand Up @@ -4088,7 +4088,7 @@ const CountriesAndCities = [
'Chapai Nawabganj',
'Chattogram',
'Chuadanga',
"Cox's Bazar",
`Cox's Bazar`,
'Cumilla',
'Dinajpur',
'Dhaka',
Expand Down Expand Up @@ -50003,8 +50003,8 @@ const CountriesAndCities = [
'Zalau',
'Zarnesti',
'Zlatna',
'Simleu Silvaniei',
],
'Simleu Silvaniei'
]
},
{
country: 'Russia',
Expand Down
1 change: 1 addition & 0 deletions views/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<div class="content__actions">
<button onclick="window.open('https://github.com/MartinsOnuoha/countriesAndCitiesAPI')" class="btn shadow-1 bg-black">Contribute 🛠</button>
<button onclick="window.open('https://documenter.getpostman.com/view/1134062/T1LJjU52')" class="btn shadow-1 bg-white">API Docs 🚀</button>
<button onclick="window.open('https://buymeacoffee.com/martinsvicf')" class="btn shadow-1 bg-white">Support ❤️</button>
</div>
<div id="json"></div>

Expand Down

0 comments on commit eb4e296

Please sign in to comment.