|
1 | | -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). |
| 1 | +<p align="center"> |
| 2 | + <img width="200" height="200" alt="Moon" src="https://github.com/user-attachments/assets/e38843c0-22dd-4dbc-985e-eab77277acc4" /> |
| 3 | +</p> |
2 | 4 |
|
3 | | -## Getting Started |
| 5 | +<h1 align="center">MoonCode Website</h1> |
| 6 | +<p align="center">The main website for the MoonCode app<br/> |
| 7 | +<a href="https://mooncode.cc">mooncode.cc</a> |
| 8 | +</p> |
4 | 9 |
|
5 | | -First, run the development server: |
| 10 | +<p align="center"> |
| 11 | + <img src="https://img.shields.io/badge/version-0.0.1-yellow"> |
| 12 | + <img src="https://img.shields.io/badge/LICENSE-MIT-yellow"> |
| 13 | +</p> |
| 14 | + |
| 15 | +## Description |
| 16 | + |
| 17 | +This project is the website (marketing site) of the MoonCode project. |
| 18 | +It is built on top of [Nextjs](https://nextjs.org/). |
| 19 | + |
| 20 | +## Project setup |
| 21 | + |
| 22 | +To run the website, you need to first clone the repository |
| 23 | + |
| 24 | +```bash |
| 25 | +git clone https://github.com/Friedrich482/mooncode-monorepo.git |
| 26 | +``` |
| 27 | + |
| 28 | +Then `cd` in the `web` folder |
| 29 | + |
| 30 | +```bash |
| 31 | +cd apps/web |
| 32 | +``` |
| 33 | + |
| 34 | +Then install dependencies |
| 35 | + |
| 36 | +```bash |
| 37 | +npm install |
| 38 | +``` |
| 39 | + |
| 40 | +### Development |
| 41 | + |
| 42 | +Run |
6 | 43 |
|
7 | 44 | ```bash |
8 | 45 | npm run dev |
9 | | -# or |
10 | | -yarn dev |
11 | | -# or |
12 | | -pnpm dev |
13 | | -# or |
14 | | -bun dev |
15 | 46 | ``` |
16 | 47 |
|
17 | | -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 48 | +and open `http://localhost:3001` |
| 49 | + |
| 50 | +### Production |
| 51 | + |
| 52 | +To build for production, build with: |
18 | 53 |
|
19 | | -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
| 54 | +```bash |
| 55 | +npm run build |
| 56 | +``` |
20 | 57 |
|
21 | | -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. |
| 58 | +and start the built app with: |
22 | 59 |
|
23 | | -## Learn More |
| 60 | +```bash |
| 61 | +npm run start |
| 62 | +``` |
24 | 63 |
|
25 | | -To learn more about Next.js, take a look at the following resources: |
| 64 | +## Deployment |
26 | 65 |
|
27 | | -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
28 | | -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 66 | +The website is currently deployed on [mooncode.cc](https://mooncode.cc). |
29 | 67 |
|
30 | | -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! |
| 68 | +## Containerization |
31 | 69 |
|
32 | | -## Deploy on Vercel |
| 70 | +To dockerize the application, you need to place yourself at the root of the monorepo, then |
| 71 | + |
| 72 | +```bash |
| 73 | +docker build -t mooncode-web -f apps/web/Dockerfile --progress=plain . |
| 74 | +``` |
| 75 | + |
| 76 | +And to run a container called `mooncode-web-container` : |
| 77 | + |
| 78 | +```bash |
| 79 | +docker run -d -p 3002:8080 --name mooncode-web-container mooncode-web |
| 80 | +``` |
33 | 81 |
|
34 | | -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. |
| 82 | +## License |
35 | 83 |
|
36 | | -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. |
| 84 | +[MIT](/LICENSE) License © 2026 |
0 commit comments