different ports , dependencies fix

This commit is contained in:
raidendotai 2024-11-05 23:21:45 +01:00
parent 300b70a7da
commit 3d453ff49f
18 changed files with 54 additions and 46 deletions

1
CONTRIBUTING.md Normal file
View File

@ -0,0 +1 @@
### contribution guide [merge from /dev here]

View File

@ -66,7 +66,7 @@ Follow the instructions. The installer
- will ask you for your keys
- setup dirs & start installs
- will start the local `cofounder/api` builder and server
- will open the web dashboard where you can create new projects (at `http://localhost:667` ) 🎉
- will open the web dashboard where you can create new projects (at `http://localhost:4200` ) 🎉
```
note :
@ -77,6 +77,10 @@ and can be used without limits during the current early alpha period
the full index will be available for local download on v1 release
```
- currently using `node v22` for the whole project.
```sh
# alternatively, you can make a new project without going through the dashboard
# by runing :
@ -114,7 +118,7 @@ You can (re)start the `local cofounder API` running the following command from `
npm run start
```
The dashboard will open in `http://localhost:667`
The dashboard will open in `http://localhost:4200`
- note: You can also generate new apps from the same env, without the the dashboard, by running, from `./cofounder/api`, one of these commands

1
ROADMAP.md Normal file
View File

@ -0,0 +1 @@
### roadmap to v1 [merge from /dev here]

1
benchmarks/README.md Normal file
View File

@ -0,0 +1 @@
### benchmark cases [merge from /dev here]

View File

@ -1,4 +1,4 @@
PORT = 667
PORT = 4200
OPENAI_API_KEY = "REPLACE_WITH_OPENAI_KEY"
ANTHROPIC_API_KEY = "REPLACE_WITH_ANTHROPIC_KEY"

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -1,30 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Karla:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<title>Cofounder Dashboard</title>
<script type="module" crossorigin src="/assets/index-Ci0XSEHc.js"></script>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Karla:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<title>Cofounder Dashboard</title>
<script type="module" crossorigin src="/assets/index-B1d7LZHm.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-COffgP7k.css">
</head>
<body>
<div id="root"></div>
<script>
document.addEventListener("keydown", (event) => {
if (event.ctrlKey && event.key === "k") {
console.log("Ctrl+K pressed!");
event.preventDefault(); // Prevent doing a google search
}
});
</script>
</body>
</html>
</head>
<body>
<div id="root"></div>
<script>
document.addEventListener("keydown", (event) => {
if (event.ctrlKey && event.key === "k") {
console.log("Ctrl+K pressed!");
event.preventDefault(); // Prevent doing a google search
}
});
</script>
</body>
</html>

View File

@ -31,6 +31,7 @@
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"module-alias": "^2.2.3",
"nodemon": "*",
"open": "^10.1.0",
"openai": "^4.55.4",
"p-all": "^5.0.0",

View File

@ -118,7 +118,7 @@ if (new_project.project && new_project.description) {
// -------------------------------------------------------------- SERVER SETUP ------------------------
const app = express();
const PORT = process.env.PORT || 667;
const PORT = process.env.PORT || 4200;
app.use(cors());
app.use(express.json({ limit: "20mb" }));

View File

@ -110,7 +110,7 @@ export default {
*/
code = code.replaceAll(
`{COFOUNDER_LOCAL_API_BASE_URL}`,
`http://localhost:667/api`,
`http://localhost:4200/api`,
);
if (path.includes(`src/App.tsx`)) {
return await editSectionsAndViews({ path, code });

View File

@ -1,11 +1,11 @@
{
"name": "conductor",
"name": "dashboard",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "conductor",
"name": "dashboard",
"version": "0.0.0",
"dependencies": {
"@heroicons/react": "^2.1.5",

View File

@ -12,7 +12,7 @@ const App: React.FC = () => {
const [pingServerChecked, setPingServerChecked] = useState(false);
const location = useLocation();
const SERVER_LOCAL_URL = "http://localhost:667/api";
const SERVER_LOCAL_URL = "http://localhost:4200/api";
useEffect(() => {
const checkPingServer = async () => {
try {

View File

@ -263,7 +263,7 @@ export default memo(({ data, isConnectable }) => {
src={
node_extra[selectedVersion]?.render?.image?.url?.length
? node_extra[selectedVersion]?.render?.image?.url
: `http://localhost:667/storage/${node_extra[selectedVersion]?.render?.image?.local.split("/storage/")[1]}`
: `http://localhost:4200/storage/${node_extra[selectedVersion]?.render?.image?.local.split("/storage/")[1]}`
}
></img>
</div>

View File

@ -20,7 +20,7 @@ const Project: React.FC = () => {
const tabs = ["blueprint", "live", "editor", "export"];
const SERVER_LOCAL_URL = "http://localhost:667/api";
const SERVER_LOCAL_URL = "http://localhost:4200/api";
const WEBAPP_LOCAL_URL = "http://localhost:5173";
const dispatch = useDispatch();

View File

@ -34,7 +34,7 @@ import { Input } from "@/components/ui/input";
import { Textarea } from "@/components/ui/textarea";
const ProjectsList = () => {
const SERVER_LOCAL_URL = "http://localhost:667/api";
const SERVER_LOCAL_URL = "http://localhost:4200/api";
const [projects, setProjects] = useState([]);
const [slugifiedId, setSlugifiedId] = useState("");
const navigate = useNavigate();

View File

@ -3,7 +3,7 @@ import { io } from "socket.io-client";
import { merge } from "lodash-es";
// Socket.io client setup
const socket = io("http://localhost:667");
const socket = io("http://localhost:4200");
// Initial state for the store
const initialState = {