Coder Social home page Coder Social logo

nasa-project's Introduction

nasa-project's People

Contributors

odziem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nasa-project's Issues

Unable to see client page on 8000

Hi Odziem,

I have built the application on docker and cannot see the client page on the 8000 port. Please help me with how to view the client page from docker. However, I can run applications individually on my machine on ports 3000 & 8000.

Getting Error: when hitting URL:

  http://192.168.0.106:8000/
 Error: ENOENT: no such file or directory, stat '/app/server/public/index.html'

It will be great if you write a docker-compose file for the client & server.

I really appreciate any help you can provide.

cannot load the frontend after building the production file using react build scripts, I have been stuck with this all day , if anyone can help with it , please write the solution in the comments

Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Object.ai (main.d5cd5a52.js:2:329928)
at t.useState (main.d5cd5a52.js:2:422732)
at main.d5cd5a52.js:2:471593
at oi (2.acf50103.chunk.js:2:164940)
at Wu (2.acf50103.chunk.js:2:217398)
at Pl (2.acf50103.chunk.js:2:204572)
at Sl (2.acf50103.chunk.js:2:204500)
at Ol (2.acf50103.chunk.js:2:204363)
at yl (2.acf50103.chunk.js:2:201329)
at 2.acf50103.chunk.js:2:150708
uu @ react-dom.production.min.js:216

Getting mongodb connection error in docker container

Error log :

MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017

I am getting this error while running the application in docker container, but working file when running directly in local environment by writing npm run watch in terminal.

offtopic

Hello, how are you?
What is your email address?

I get the following error whenever I run the application. Please help

node:internal/process/promises:265
            triggerUncaughtException(err, true /* fromPromise */);

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Can't run the project

Cannot run the project as the ./server/public folder is hiddden and BUILD_PATH is not recognized as internal or external command

watch command doesn't work

"server": "npm run watch --prefix server",
"client": "npm start --prefix client",
"watch": "npm run server & npm run client",

I added these three lines of code into my root package.json and when running npm run watch in the terminal, only the server comes up and the client won't start. And I have this warning in the chrome:
VM86:5 crbug/1173575, non-JS module files deprecated.

my node version is 18.17.1

Has anyone else faced this problem?

hard an issue with parsing my node version indicates that its not a function so i uploaded it and renamed my file extension to .mjs and it worked perfectly

but issues keep on rising using newer versions of node as it doesnt support old js some help please i have been stuck for days but the majoe issuw is loading data on start up on the front end here is my planets.model.mjs
import path from 'path';
import fs from 'fs';
import { parse } from 'csv-parse';

const __filename = new URL(import.meta.url).pathname;
const __dirname = path.dirname(__filename);

let habitablePlanets = [];

function isHabitablePlanet(planet) {
return (
planet['koi_disposition'] === 'CONFIRMED' &&
planet['koi_insol'] > 0.36 &&
planet['koi_insol'] < 1.11 &&
planet['koi_prad'] < 1.6
);
}

async function loadPlanetsData() {
return new Promise((resolve, reject) => {
fs.createReadStream(path.join(__dirname, '..', '..', 'data', 'kepler_data.csv'))
.pipe(
parse({
comment: '#',
columns: true,
})
)
.on('data', (data) => {
if (isHabitablePlanet(data)) {
habitablePlanets.push(data);
}
})
.on('error', (err) => {
console.log(err);
reject(err);
})
.on('end', () => {
console.log(${habitablePlanets.length} habitable planets found!);
resolve();
});
});
}

export { loadPlanetsData };
export const planets = habitablePlanets; my server runs perfectly but when i run it in the browser on my localhost aam told i cannot get

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.