/keystoneJS-cms

Use keystoneJS to build a graphic website

Primary LanguageLessMIT LicenseMIT

KeystoneJS Chinese Localization Version

Based on my localized version of KeystoneJS (https://github.com/enlian/keystoneJS-zh-demo), this demo showcases how to build an image and text-based website using KeystoneJS.

Continuous updates... If you're interested, feel free to star the project! Thank you!

Deployment

1. Install Dependencies

To install the project dependencies, run:

npm i

2. Start MongoDB Service

Ensure that MongoDB is running, as the project relies on it.

3. Configure Environment Variables

In the project root directory, create a .env file and add the following environment variables:

COOKIE_SECRET=your-random-string
CLOUDINARY_URL=your-cloudinary-url
MONGO_URI=your-mongodb-connection-string

4. Run Development Server

To start the development server, run:

npm run dev

This will launch the project in development mode.

5. Run Production Server

To build and run the project in production mode, run:

npm run pro

This will create an optimized production build and start the server.

Additional Information

For more details on installation, deployment, or troubleshooting, refer to the official KeystoneJS documentation.


Continuous updates... If you find this project helpful, feel free to give it a star! Thank you!