everything-spacex

A information site about SpaceX. (by TheGreenNoodle)

everything-spacex reviews and mentions

Posts with mentions or reviews of everything-spacex. We have used some of these posts to build our list of alternatives and similar projects.
  • What do you think of my website? Do you think I am job ready?
    1 project | /r/learnprogramming | 18 Jul 2022
    Code
  • I cannot deploy my app to Heroku.
    1 project | /r/learnprogramming | 13 Jul 2022
    // () surrounds the children folders //File stucture everything-spacex : (my-app) (server) package.json package-lock.json //everything-spacex package.json. Not the one in server or my-app { "name": "spacex-info-site", "version": "1.0.0", "description": "SpaceX info site.", "main": "server/app.js", "scripts": { "start": "node server/app.js", "build": "cd my-app && npm install && npm install -S react-router-dom && npm run build" }, "engines": { "node": "16.14.0", "npm": "8.12.1" }, "author": "", "license": "ISC" } //my-app file stucture my-app : (public) (src) package.json package-lock.json //server file stucture server : app.js package.json package-lock.json //app.js const path = require("path"); const express = require("express"); const cors = require("cors"); const axios = require("axios"); require("dotenv").config(); const PORT = process.env.PORT || 3001; //api environment variables const app = express(); const fs = require("fs"); app.use(cors()); app.use(express.static(path.resolve(__dirname, "../my-app/build"))); app.route("/api").get((req, res) => {data} app.get("*", (req, res) => { res.sendFile(path.resolve(__dirname, "../my-app/build", "index.html")); }); app.listen(PORT, () => { console.log(`Server listening on ${PORT}`); }); //When I push to Heroku I do this cd to parent folder of my-app and server git add . git commit -am "message" git push heroku main //Then I think this is where it messes up remote: Creating an optimized production build... remote: Failed to compile. remote: remote: Module not found: Error: Can't resolve 'react-router-dom' in '/tmp/build/my-app/src' remote: remote: remote: remote: -----> Build failed remote: remote: We're sorry this build is failing! You can troubleshoot common issues here: remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys remote: remote: If you're stuck, please submit a ticket so we can help: remote: https://help.heroku.com/ remote: remote: Love, remote: Heroku remote: remote: ! Push rejected, failed to compile Node.js app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to everything-spacex. //git rep if you wanna look https://github.com/TheGreenNoodle/everything-spacex
  • My site won't render anymore.
    1 project | /r/learnprogramming | 18 May 2022
    GitHub
  • How do I hide an API key in a MERN Stack?
    1 project | /r/learnprogramming | 16 May 2022
    This is how I have it set up. https://github.com/TheGreenNoodle/everything-spacex
  • A note from our sponsor - SaaSHub
    www.saashub.com | 5 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic everything-spacex repo stats
4
2
0.7
about 1 year ago

The primary programming language of everything-spacex is JavaScript.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com