This app is built for learning purposes. User can add his/her own recipe into the cookbook.
Functionalities:
- add new recipes
- add recipe's steps
- edit recipe's name
- edit recipe's step
- remove recipe's step
This app is built using MongoDB, Node.js and Ionic Framework.
- Node.js provides the RESTful API.
- Ionic Framework provides the frontend and accesses the API.
- MongoDB stores the data.
This app is built based on the below tutorial
Clone the repository: git clone https://[email protected]/ailuromaniac/campakcampakjer.git
- Navigate to the dev mongodb directory:
cd campakcampakjer/dev/mongodb
- Create a data folder:
mkdir data
- Update dbpath and logpath in mongo.config to point to the data and mongodb respectively
- Navigate to the server directory:
cd ../server
- Install the application:
npm install
- Start the local DB:
<MongoDB-bin>/mongod.exe --config <parent-path>/campakcampakjer/dev/mongodb/mongo.config
- Start the server:
node server.js
- Navigate to the client folder:
cd ../client/CampakCampakJer
- Start Ionic:
ionic serve
- If the application does not start, view in browser at http://localhost:8100/
REST Server: http://campakcampakjer-ailuromaniac.rhcloud.com
- For example, to see all the recipes in the db, view in browser at http://campakcampakjer-ailuromaniac.rhcloud.com/api/campakcampakjer/recipes
- To open the client, navigate to the client folder in openshift environment:
cd campakcampakjer/openshift/client/CampakCampakJer
- Start Ionic:
ionic serve
- If the application does not start, view in browser at http://localhost:8100/