A nuxt.js-based content management system designed for https://effectindex.com
- Install Node and MongoDB, get the MongoDB server running.
- Clone the Repo
npm install
- Create a .env file in the base directory with the following content:
# 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
sudo mongorestore --db ~/path/to/extracted_db ~/path/to/restore/to
- (optional) Run
sudo mongod --dbpath=/path/to/your/restored/db
to start the MongoDB daemon with your extracted database. Make sure to stop the daemon from step 1 if you're doing this. - Use 'npm run dev' to run the development server, 'npm run build' to build the production site, and 'npm run start' to start the production site.