starter-express-api's People
Forkers
seekayel timothymagnum nad279444 amakay25 lucca-rodrigues samyogdhital xitizzz jgumerove sachanarpit ankuranand598 dharmeshrao lalagreen artb433 princepatrickbondzie sahilrajput03 shikha-max peterhttps debanjan1992 phagun-jain stdioh321 prinako jayjscotto murielpacheco alifakoor guoconde iamfranco neeraj15022001 the-programer23 selium98 maxkruse wewovi baltzarmattsson ayobamimichael sivv-b arghyac35 engjames256 awesometic justicebringer zniii bavshehata jungers42 timothy-py azakic yomiaishida akshatkumar4433 ayushmanwebdeveloper sciederrick nisalrenuja dennismoha susithrupasinghe akalanka47000 dinuwan97 bayulee dassah-felix nomboibrahim dev7-abood sushantxeemu rzi beltjun26 stereogon sunbabaara coder-shanta babaremakurongesther rohngonnarock sergiomblabs william-aviana diegohdcz aadharshr joaop3dev keniiy shubham2157 sanjuhub sahilpabale abrish-b mostofa62 abass-alhassan delabans aswinbarath lihnnguyen inaam-ur-rehman ebukaodini josielsouzasdj ua6em princeoprince abubakar-here loskir dinjag leguass7 vitals9367 amin-bo dasgupta002 ved08 mssoliveira efs0-cod3 dijaunsmith yosefor oluwaseun-adesina shreyazz soriagorgoroso unalostarter-express-api's Issues
What's the difference between this and the starter micro api?
Which one should I use?
(Or which one is used for what? EX: express might be used for websites whereas micro might be used for games or something idk)
sockets.io is not working
leaving an error
websocket connection is failed at client console.
Here is my repo (https://github.com/nikhilreddydev/loveLamps).
Please someone help me out.
set process.env.PORT not work bug?
set process.env.PORT not work bug?
So is there no way to change the server port?
https://github.com/web-full-stack/cyclic-express-server#cyclic-bug
const fs = require('node:fs');
const path = require('node:path');
const express = require('express');
const app = express();
app.use(express.static(__dirname + '/public'),
//
);
app.use(express.static(__dirname + '/static'),
//
);
app.get('/', (req, res) => {
fs.readFile(__dirname + '/public/index.html', 'utf8', (err, text) => {
res.send(text);
});
});
// const defaultPort = 3000;
// const port = process.env.PORT || defaultPort
// console.log(`❓process.env.PORT =`, process.env.PORT)
const port = 8888;
console.log(`❓port = ${port}`)
app.listen(port, () => {
console.log(`app is running on http://localhost:${port}`)
});
the process.env.PORT
variable not work at all
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.