- Backend is built with KoaJS(Node). It's copied from v1 version (known as osumemes) - https://github.com/WilczekCK/meme-page/releases/tag/1
- Frontend is built with Vue(Nuxt), removed everything from v1 version. Started from scratch.
- Front and backend connected using https://github.com/lautiamkok/nuxt-koa from lautiamkok it was really helpful to understand how to do it :)
# 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
- Google authorization
- AWS, right now images are saved in assets/uploads server.