Skip to content

mupxq/todolistReact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo list project

This project already deployed

http://54.157.25.244

deployment instructions

First, in the project src/constants directory edit URL.js change the URL to your own API server's URL

export const GRAPHQL_URL = "http://54.157.25.244:8880/graphql";

export const API_URL = "http://54.157.25.244:8880/";

Then run command

npm install
npm run build

Builds the app for production to the build folder. Copy the build folder to Nodejs and Express project. Then use Nodejs and Express to deploy the project.

const express = require('express');
const path = require('path');
const app = express();

app.use(express.static(path.join(__dirname, 'build')));

app.get('/', function (req, res) {
  res.sendFile(path.join(__dirname, 'build', 'index.html'));
});

app.listen(80);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published