Skip to content

auroregrdn/portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio

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.

Setup

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.

Run project

Go into the portfolio folder then run two commands :

  • npm run mongo to run mongodb as a container with docker
  • npm run dev tu 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'
  },
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published