A nuxt.js-based content management system designed for https://effectindex.com
- Install Git, Node and MongoDB
- Run
mongod --dbpath="$HOME"/.config/mongodb. Feel free to edit this path, this is where the database will be stored. git clone https://github.com/effectindex/EffectIndexcd EffectIndexnpm install- Create a
.envfile in theEffectIndexdirectory with the following contents:
# URL of the server
BASE_URL=http://localhost:3000/
# Base URL for Axios ('/' unless running in some directory)
BROWSER_BASE_URL=/
# A secret for the JSON Web Tokens
jwtSecret=change_this_to_something_other_than_this- (optional) Download a dump of the database and use the MongoDB
mongorestoreutility to restore it.
- Extract the zip file to a folder
mongorestore --db effectindex dump/effectindex
- Use
npm run devto run the development server,npm run buildto build the production site, andnpm run startto start the production site.
Note: If your Node version is newer than 16, you will get an error upon startup. If you have nvm installed, nvm use while in the EffectIndex directory will automatically use the right version.
Note: If your computer supports IPv6, you MUST use --ipv6 when running mongod, otherwise EffectIndex will fail to connect to the database.