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/EffectIndex
cd EffectIndex
npm install
- Create a
.env
file in theEffectIndex
directory 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
mongorestore
utility to restore it.
- Extract the zip file to a folder
mongorestore --db effectindex dump/effectindex
- Use
npm run dev
to run the development server,npm run build
to build the production site, andnpm run start
to 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.