- Start SQL server and run "createdb journal -O labber"
- Run "npm i"
- Create .env file (Copy content from .env.example)
- Run "npm run dev"
- Open http://localhost:3001/
- Run "npm i"
- Run "npm start"
- React front-end is running on port 3000
- Express back-end is running on port 3001 (or any other)
Cross-Origin Resource Sharing
- A web application makes a cross-origin HTTP request when it requests a resource that has a different domain (i.e. different ports)
- Web application using APIs can only request HTTP resources from the same origin the application was loaded from, unless the response from the other origin includes the right CORS headers.
Create React App with an Express Backend
Access-Control-Allow-Origin: Dealing with CORS Errors in React and Express