API for MyMemes, MyMemesAngular and MyMemesNative projects
- Node.js
- MongoDB
A little intro about the installation.
-
Install MongoDB if you heven't done that yet MongoDB Installation
-
Clone project
$ git clone https://github.com/akcer/MyMemesAPI.git
- Enter the project directory:
$ cd MyMemesAPI
- Create .env file
$ touch .env
- Add following environment variables:
NODE_ENV=development
PORT=3001
CLIENT_HOST=http://localhost:3000
ANGULAR_APP_HOST=http://localhost:4200
MOBILE_APP_HOST=http://localhost:19006
LOCAL_MACHINE_HOST= your local machine host
MONGODB_HOST=mongodb://localhost/mymemes
- Install NPM dependencies:
$ npm install
- Run the development server:
$ npm run dev
- Go to http://localhost:3001 to access the API.
- ExpressJS
- MongoDB
- Mongoose
- PassportJS