Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite backend using Flask + mongo #27

Open
8 tasks
maria opened this issue Sep 4, 2016 · 0 comments
Open
8 tasks

Rewrite backend using Flask + mongo #27

maria opened this issue Sep 4, 2016 · 0 comments
Assignees

Comments

@maria
Copy link
Owner

maria commented Sep 4, 2016

Need

Now we use Django with PostgreSQL and MongoDB, a hybrid which is hard to maintain and doesn't have much sense. Since the Django won't officially support Mongo in the upcoming releases and Flask is easier to implement with Mongo I suggest we move now, while we still can.

Solution

  • Create a new directory called api
  • Define a new file called app.py where our main Flask application will be defined
  • Define MongoDB as the database
  • Add a config file like settings.py
  • Define the api as http://flask-restful-cn.readthedocs.io/en/0.3.5/
  • Define api classes for each resourse
  • Define routes for logging in user, logging out and api
  • Remove django
@maria maria self-assigned this Sep 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant