We just want to host HTML CSS and JavaScript. how hard is that
- Create a MongoDB database and obtain your
MongoDB URI- MongoDB Atlas
Rename the .env.example file to .env and add the following
NODE_ENV = development
PORT = 5000
MONGO_URI = your mongodb uri
JWT_SECRET = 'abc123'
DB_NAME = your db name
FRONTEND_URL = http://localhost:3000/
Change the JWT_SECRET to what you want
npm install
cd frontend
npm install
# Run frontend (:3000) & backend (:5000)
npm run dev
# Run backend only
npm run server
# Create frontend prod build
cd frontend
npm run build