mirror of
https://github.com/raidendotai/cofounder
synced 2025-01-22 10:36:17 +00:00
different ports , dependencies fix
This commit is contained in:
parent
300b70a7da
commit
3d453ff49f
1
CONTRIBUTING.md
Normal file
1
CONTRIBUTING.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
### contribution guide [merge from /dev here]
|
@ -66,7 +66,7 @@ Follow the instructions. The installer
|
|||||||
- will ask you for your keys
|
- will ask you for your keys
|
||||||
- setup dirs & start installs
|
- setup dirs & start installs
|
||||||
- will start the local `cofounder/api` builder and server
|
- 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 :
|
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
|
the full index will be available for local download on v1 release
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- currently using `node v22` for the whole project.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# alternatively, you can make a new project without going through the dashboard
|
# alternatively, you can make a new project without going through the dashboard
|
||||||
# by runing :
|
# by runing :
|
||||||
@ -114,7 +118,7 @@ You can (re)start the `local cofounder API` running the following command from `
|
|||||||
npm run start
|
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
|
- 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
1
ROADMAP.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
### roadmap to v1 [merge from /dev here]
|
1
benchmarks/README.md
Normal file
1
benchmarks/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
### benchmark cases [merge from /dev here]
|
@ -1,4 +1,4 @@
|
|||||||
PORT = 667
|
PORT = 4200
|
||||||
|
|
||||||
OPENAI_API_KEY = "REPLACE_WITH_OPENAI_KEY"
|
OPENAI_API_KEY = "REPLACE_WITH_OPENAI_KEY"
|
||||||
ANTHROPIC_API_KEY = "REPLACE_WITH_ANTHROPIC_KEY"
|
ANTHROPIC_API_KEY = "REPLACE_WITH_ANTHROPIC_KEY"
|
||||||
|
File diff suppressed because one or more lines are too long
BIN
cofounder/api/dist/favicon.png
vendored
BIN
cofounder/api/dist/favicon.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 9.7 KiB |
2
cofounder/api/dist/index.html
vendored
2
cofounder/api/dist/index.html
vendored
@ -13,7 +13,7 @@
|
|||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<title>Cofounder Dashboard</title>
|
<title>Cofounder Dashboard</title>
|
||||||
<script type="module" crossorigin src="/assets/index-Ci0XSEHc.js"></script>
|
<script type="module" crossorigin src="/assets/index-B1d7LZHm.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-COffgP7k.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-COffgP7k.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"module-alias": "^2.2.3",
|
"module-alias": "^2.2.3",
|
||||||
|
"nodemon": "*",
|
||||||
"open": "^10.1.0",
|
"open": "^10.1.0",
|
||||||
"openai": "^4.55.4",
|
"openai": "^4.55.4",
|
||||||
"p-all": "^5.0.0",
|
"p-all": "^5.0.0",
|
||||||
|
@ -118,7 +118,7 @@ if (new_project.project && new_project.description) {
|
|||||||
|
|
||||||
// -------------------------------------------------------------- SERVER SETUP ------------------------
|
// -------------------------------------------------------------- SERVER SETUP ------------------------
|
||||||
const app = express();
|
const app = express();
|
||||||
const PORT = process.env.PORT || 667;
|
const PORT = process.env.PORT || 4200;
|
||||||
|
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
app.use(express.json({ limit: "20mb" }));
|
app.use(express.json({ limit: "20mb" }));
|
||||||
|
@ -110,7 +110,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
code = code.replaceAll(
|
code = code.replaceAll(
|
||||||
`{COFOUNDER_LOCAL_API_BASE_URL}`,
|
`{COFOUNDER_LOCAL_API_BASE_URL}`,
|
||||||
`http://localhost:667/api`,
|
`http://localhost:4200/api`,
|
||||||
);
|
);
|
||||||
if (path.includes(`src/App.tsx`)) {
|
if (path.includes(`src/App.tsx`)) {
|
||||||
return await editSectionsAndViews({ path, code });
|
return await editSectionsAndViews({ path, code });
|
||||||
|
4
cofounder/dashboard/package-lock.json
generated
4
cofounder/dashboard/package-lock.json
generated
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "conductor",
|
"name": "dashboard",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "conductor",
|
"name": "dashboard",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@heroicons/react": "^2.1.5",
|
"@heroicons/react": "^2.1.5",
|
||||||
|
@ -12,7 +12,7 @@ const App: React.FC = () => {
|
|||||||
const [pingServerChecked, setPingServerChecked] = useState(false);
|
const [pingServerChecked, setPingServerChecked] = useState(false);
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const SERVER_LOCAL_URL = "http://localhost:667/api";
|
const SERVER_LOCAL_URL = "http://localhost:4200/api";
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const checkPingServer = async () => {
|
const checkPingServer = async () => {
|
||||||
try {
|
try {
|
||||||
|
@ -263,7 +263,7 @@ export default memo(({ data, isConnectable }) => {
|
|||||||
src={
|
src={
|
||||||
node_extra[selectedVersion]?.render?.image?.url?.length
|
node_extra[selectedVersion]?.render?.image?.url?.length
|
||||||
? node_extra[selectedVersion]?.render?.image?.url
|
? 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>
|
></img>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +20,7 @@ const Project: React.FC = () => {
|
|||||||
|
|
||||||
const tabs = ["blueprint", "live", "editor", "export"];
|
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 WEBAPP_LOCAL_URL = "http://localhost:5173";
|
||||||
|
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
@ -34,7 +34,7 @@ import { Input } from "@/components/ui/input";
|
|||||||
import { Textarea } from "@/components/ui/textarea";
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
|
|
||||||
const ProjectsList = () => {
|
const ProjectsList = () => {
|
||||||
const SERVER_LOCAL_URL = "http://localhost:667/api";
|
const SERVER_LOCAL_URL = "http://localhost:4200/api";
|
||||||
const [projects, setProjects] = useState([]);
|
const [projects, setProjects] = useState([]);
|
||||||
const [slugifiedId, setSlugifiedId] = useState("");
|
const [slugifiedId, setSlugifiedId] = useState("");
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
@ -3,7 +3,7 @@ import { io } from "socket.io-client";
|
|||||||
import { merge } from "lodash-es";
|
import { merge } from "lodash-es";
|
||||||
|
|
||||||
// Socket.io client setup
|
// Socket.io client setup
|
||||||
const socket = io("http://localhost:667");
|
const socket = io("http://localhost:4200");
|
||||||
|
|
||||||
// Initial state for the store
|
// Initial state for the store
|
||||||
const initialState = {
|
const initialState = {
|
||||||
|
Loading…
Reference in New Issue
Block a user