Skip to content

Commit f6b3107

Browse files
authored
Merge pull request #40 from efdevcon/lib-install-fix
Update lib package dependencies using yarn
2 parents e72753c + 8a6fa20 commit f6b3107

File tree

4 files changed

+1791
-2199
lines changed

4 files changed

+1791
-2199
lines changed

devconnect/README.md

+40-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,56 @@
1+
# DevConnect
2+
13
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
24

5+
## Prerequisites
6+
7+
- Node.js 18.x or later (required for Next.js 13.4.9 and other dependencies)
8+
- Yarn package manager
9+
- Access to the shared library
10+
311
## Getting Started
412

5-
First, run the development server:
13+
1. First, install the shared library:
14+
15+
```bash
16+
cd ../lib
17+
yarn install
18+
```
19+
20+
2. Install project dependencies:
21+
22+
```bash
23+
cd ../devconnect
24+
yarn install
25+
```
26+
27+
3. Run the development server:
628

729
```bash
8-
npm run dev
9-
# or
1030
yarn dev
1131
```
1232

1333
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1434

15-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
35+
## Project Structure
36+
37+
- `cms/` - Content management system files for translations
38+
- `src/` - Main source code directory
39+
- `ai/` - AI-related functionality
40+
- `common/components` - Project specific components
41+
- `pages/` - Next.js pages and API routes
42+
- `store/` - State management
43+
- `styles/` - Main style files
44+
- `types/` - TypeScript type definitions
45+
- `public/` - Public static assets
46+
- `styles/` - Global styles and Tailwind configuration
47+
- `tina/` - TinaCMS configuration and templates
1648

17-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
49+
## Development
1850

19-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
51+
- The page auto-updates as you edit files
52+
- API routes can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello)
53+
- The `pages/api` directory is mapped to `/api/*`
2054

2155
## Learn More
2256

@@ -26,9 +60,3 @@ To learn more about Next.js, take a look at the following resources:
2660
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
2761

2862
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29-
30-
## Deploy on Vercel
31-
32-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33-
34-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

lib/README.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
Remember to npm install here to keep typescript happy!
1+
# Shared Library
2+
3+
This directory contains shared code and utilities used across the project.
4+
5+
## Setup
6+
7+
```bash
8+
# Install dependencies
9+
yarn install
10+
```
11+
12+
## Development
13+
14+
- This library is used as a dependency in other parts of the project
15+
- Make sure to run `yarn install` here to keep TypeScript happy
16+
- Any changes to this library may require rebuilding dependent projects
17+
18+
## Usage
19+
20+
This library is automatically linked to other projects in the monorepo. Import components and utilities as needed:
21+
22+
```typescript
23+
import { Button } from 'lib/components/button'
24+
```

lib/package-lock.json

-152
This file was deleted.

0 commit comments

Comments
 (0)