Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.
/ api Public archive

(Demo api site implementation with button support)

Notifications You must be signed in to change notification settings

Fri3dCamp/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api.fri3d.be

Introduction

The api site is a REST interface to the fri3d datastore that provides data support to several applications:

  • fri3d button is a Facbook/Google-like button to indicate interest in a certain topic, e.g. an item on the program,... but any URI can be "liked".

The api site is a Flask-based Python application, prepared to be deployed on e.g. Heroku.

Create a (local) Mongo instance

$ mongo
MongoDB shell version v3.4.5
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.5
> use admin
switched to db admin
> db.auth("admin", "admin" )
1
> use fri3d
switched to db fri3d
> db.createUser({ user: "fri3d", pwd: "fri3d", roles: [ { role: "readWrite", db: "fri3d" }] } )
Successfully added user: {
	"user" : "fri3d",
	"roles" : [
		{
			"role" : "readWrite",
			"db" : "fri3d"
		}
	]
}
> use fri3d
switched to db fri3d
> db.auth("fri3d", "fri3d")
1

Run the api site

$ virtualenv venv
$ . venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ python run.py

About

(Demo api site implementation with button support)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published