You need to install Node, docker and docker-compose,
You don't need docker and docker-compose if you already have a local mongodb running.
First you need to install npm packages for client and for api,
To do that, got to the api folder and then run the command npm install,
then, do the same thing in the client folder.
Go into the portfolio folder then run two commands :
npm run mongoto run mongodb as a container with dockernpm run devtu run the nuxt server, and the api one
You wouldn't access the admin part without any user.
The route to create a user is only open in dev mode
To create one user, make a POST requet on http://localhost:4000/api/users
with a body that looks like this :
{
"username": "my_name",
"email": "[email protected]",
"password" : "my_psw"
}Hidden config
Add a local.js file into api/config to add config that you don't want to commit,
like cloudinary config ex :
module.exports = {
cloudinaryConfig: {
cloud_name: 'name',
api_key: 'key',
api_secret: 'secret'
},
}