Skip to content

WilczekCK/Lenny

Repository files navigation

( ͡° ͜ʖ ͡°) Lenny
NuxtJS and KoaJS meme page (SSR)

At the beginning...

Built with:

Configuration

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm start

Database and fb authorization
Head to the /server/config/ and edit index.js file, there you will find database and fb_auth object to fill informations in.
Also, sql structure is in the root directory.

Good to know!

  • Koa handles the controller and the model as an API. Nuxt handles the view and calls the API, e.g http://127.0.0.1:3000/ (from Nuxt) will call http://127.0.0.1:3000/api (from Koa)
  • To give yourself an admin, set the role of user to 1
  • Open Source, do what you want with it ;)
  • Ads profile id (Adsense) available to provide in nuxt.config file
  • Memes are going to waiting room first, then admin can approve or remove it

Whats missing?

  • Google authorization
  • AWS, right now images are saved in assets/uploads server.