This repository contains the code necessary to build a web app where a user can list his/her skills on a profile page and recommend skills to other users.
-
Django 1.9: High-level Python Web framework that encourages rapid development and clean, pragmatic design.
-
Python 2.7.12
Throughout the next sections, the necessary steps in order to launch the program are explained.
- In order to run the program, in the workspace we do:
python manage.py runserver
- If we update the file models.py, before running the upper command, we have to:
python manage.py makemigrations
python manage.py migrate
After launching the program, access to the next web page so as to see your program running:
Through this link, it is possible to login or register as a user.
Once we have logged in the program, there are three main windows:
-
Main Page: Default web page in which you can access to the other two webs.
-
Profile Page: It shows all your data: General information and skills you have (With the number of likes that other people have liked). It is possible to complete your profile including your name and age. Furthermore, this web allows the possibility to enter new skills.
-
Users Page: This web includes the different users in the system, their skills and the number of likes for each one of their skills. It also allows to press like to their skills.
To see all this web pages without the necessity of creating a new user, you can login with:
Username: test Password: admindb
It is possible to access to the database as a root by putting the web address shown below. In this web, it is possible to edit freely all the database.
The username and password of the current root is:
Username: admin Password: wantedly
In order to create a new superuser throughout the terminal, this command has to be launched:
python manage.py createsuperuser
- Database created with the users and skills.
- Possibility of register users and login them.
- Different displays (Main, profile and users page) for different functionalities.
- Possibility of adding in your profile new skills.
- Possibility of pressing like to others skills.
- Possibility of deleting skills.
- Ordering the skills based on the number of likes.
- Allowing the users only to press one like for each one of the skills of the other users.
- Asking for profile images for each one of the users.
- Improve the web interface.
Heroku is a cloud platform as a service (PaaS) supporting several programming languages (Java, Node.js, Scala, Clojure, Python, PHP, and Go) that is used as a web application deployment model. For this reason, Heroku is said to be a polyglot platform as it lets the developer build, run and scale applications in a similar manner across all the languages.
In the next link, it is possible to find this project on such platform.
https://wantedlycodechallenge.herokuapp.com/
All the commands mentioned above can be launched in the same way by changing '127.0.0.1:8000' for 'wantedlycodechallenge.herokuapp.com'.