Grommet CMS - A content management system with world class UX
This repo contains the source code for the Grommet CMS. We are working on open sourcing this right now and would love your help! See CONTRIBUTING.md for details on how to contribute :smile:
This is the source code for the Grommet CMS boilerplate. To run this application, execute the following commands:
$ yarn
Below are the default .env values:
# Environment variables for database connection.
DB="grommet-cms-dev" // the name of your mongo database
NODE_ENV="development" // the default NODE_ENV
DB_USER="" // The DB user name
DB_PW="" // the db password
BASE_URL="http://localhost:8003" // base url for your front end
API_URL="http://localhost:8000/api" // base url for your API.
API_PREFIX="dashboard" // Path for urls to your API, routes will look like /dashboard/api/my-route.
Ensure Mongo is running. Upon starting the server the application will automatically build a hello world post and a temporary dashboard user.
To start the server run:
$ npm run api-dev
$ npm run dev
$ npm run build
$ forever start server ./server/server
See here