Home

Awesome

Next.js

<h1 align="center">Next.js ❤️ MongoDB</h1> <div align="center">

Deploy with Vercel

An Next.js and MongoDB web application, designed with simplicity for learning and real-world applicability in mind.

:rocket: Check out the demo :rocket:

</div> <h2 align="center">Features</h2> <div align="center"> </div> <h3 align="center">:lock: Authentication and Account</h3> <div align="center">

<sup>without passportjs: a1747b7 with passportjs: master</sup>

</div> <h3 align="center">:woman::man: Profile</h3> <div align="center"> </div> <h3 align="center">:eyes: Social</h3> <div align="center"> </div> <div align="center">

<sup>Have any features that interest you, make an issue. Would like to work on a feature, make a PR.<sup>

</div> <h2 align="center">Guide</h2>

This project accompanies the following posts:

Also check them out on dev.to.

Note: Some of the detail in the posts above might not be up to date due to breaking changes in libraries used in this projects. See #125.

The project is designed to as simple as possible for learning purpose. Due to its simplicity, aspects such as security must be reconsidered before being used in production.

<h3 align="center">Dependencies</h3>

This project uses the following dependencies:

<h3 align="center">Environmental variables</h3>

Environmental variables in this project include:

<h3 align="center">Development</h3>

Start the development server by running yarn dev or npm run dev. Getting started by create a .env.local file with the above variables. See Environment Variables.

.env.local

I include my own environment variables in .env.example for experimentation purposes. Please replace them with your owns and refrain from sabotaging them. You can try them in development by renaming it into .env.local.

In production, it is recommended to set the environment variables using the options provided by your cloud/hosting providers. Do not use or commit .env.local.

It is at upmost importance that you do not reuse these variables in production. Especially, the database in use is public so its data is visible to all.

<h2 align="center">Deployment</h2>

This project can be deployed anywhere Next.js can be deployed. Make sure to set the environment variables using the options provided by your cloud/hosting providers.

After building using npm run build, simply start the server using npm run start.

You can also deploy this with serverless providers given the correct setup.

<h2 align="center">Contributing</h2> <div align="center">

Please see my contributing.md.

</div> <h2 align="center"> License </h2> <div align="center">

MIT

</div>