https://github.com/emanuelefavero/nextjs-mern
A boilerplate for a full-stack MERN application using Next.js, Express, and MongoDB.
https://github.com/emanuelefavero/nextjs-mern
express mern mongodb nextjs nodejs
Last synced: 4 months ago
JSON representation
A boilerplate for a full-stack MERN application using Next.js, Express, and MongoDB.
- Host: GitHub
- URL: https://github.com/emanuelefavero/nextjs-mern
- Owner: emanuelefavero
- License: mit
- Created: 2023-02-01T21:21:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-03T00:13:53.000Z (over 2 years ago)
- Last Synced: 2025-02-04T16:50:28.919Z (8 months ago)
- Topics: express, mern, mongodb, nextjs, nodejs
- Language: TypeScript
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Next.js MERN
This is a boilerplate for a full-stack MERN application using Next.js, Express, and MongoDB.
## Getting Started Locally
- Clone the repo
- Install dependencies with `npm install` in the root directory and the `client` directory
- Create a `.env` file in the root directory and add the following:```env
MONGODB_URI='YOUR MONGODB URI'
PORT=4000
NODE_ENV='development'
```> Personal Note: I use [MongoDB Atlas](https://www.mongodb.com/cloud/atlas) with /blogDB as my database name in this project
- Run `npm run dev` to start the development server
## Local ports
- The backend runs on [http://localhost:4000](http://localhost:4000)
- The client runs on [http://localhost:3000](http://localhost:3000)## Deployment
- the client and server should be deployed separately
- update `clientURL.js` file with the correct URL for the client
- update `serverURL.ts` file with the correct URL for the server## License
- [MIT](LICENSE.md)