School an application to create, list, edit delete Students and Teachers.
A system where we can have a Teacher and Student.
-
One teacher can have many students and students can have many teachers.
-
User be able to do the following:
- List/add/edit/delete teachers.
- List/add/edit/delete students.
- Mark a student with exceptional students with a “star”.
- Clone the repo from GitHub
git clone https://github.com/neeraj9194/school-app
- Navigate to the repository root:
cd school-app
- (Optional) Now if you want you can load a fixture which will prepopulated data for you.
bin/load-fixture.sh
- Now, you just need to do
docker-compose up
Note: use sudo
if permission issue.
Fixture will create a default username and password for you.
Goto http://localhost:8000/
and login using these credentials.
username: testuser
password: testpassword
Test are written only for REST APIs.
Test files:
teacher/tests.py
school/tests.py
To run test.
docker-compose run web ./manage.py test
And to generate coverage report.
docker-compose run web coverage run --source='.' manage.py test
docker-compose run web coverage html
A dir named htmlcov
will be created, open index.html
from inside it to view coverage report.
- Dashboard
- Complete readme docs.
- Add fixture generator.
- Complete
docker-compose up
- Relationship for Rewards(Stars).
- Include code coverage numbers/details in the README or your response.
- Login
- Add unit tests as well as appropriate.
- Search in list
- Image Upload.??
- Add Staff ID in teacher model.
- Role based permissions.??