- This project helps users to create their own blogs for fun.
- The site is built with react, nextjs, typescript
- The api is built with node, express, mongodb with JWT Auth
- CPU: 2core
- RAM: 4GB
- Storage: HDD
Advice The minimum requirements are given in an assumption it will be run on a Linux machine
- Clone or download the project.
- In indiviual folders(website,api) install the node modules using
npm install .
- Then go to the MongoDB Atlas, create an account then a cluster and get the API token
- Create a
.env
file in api folder with an entry:
MONGO_URI = "<your-mongodb-token>"
JWT_KEY = "<your-jwt-token>"
ADDITIONALLY if running locally use to prevent CORS errors and port conflict
PORT = 3120
CORS_URL = "http://localhost:3000"
- Now in website we will do the same by creating
.env
file with values
// API URL [if running locally use "http://localhost:3120"]
NEXT_PUBLIC_API_URL="<your-backend-url>"
To do a quick view of the size of the website while testing, run the following command:
npm run analyze