A MVC application to create posts for events happening to your babies as they are growing.
The goal of this project was to build an application with the MVC pattern using Django, Postgresql, Bootstrap 4 and deploy it on a self manage linux server.
Clone the repository
$ git clone https://github.com/fpelletier-gh/baby-journal-MVC
Change directory
$ cd baby-journal-MVC
Create .env file with development settings from template .env.dist
$ cp .env.dist .env
The default settings for development are already set in the .env.dist
Do not use these settings in productions
Make sure python 3 is installed
Unix
$ which python3
Install virtualenv package
$ pip3 install virtualenv
Create the virtual environment
$ virtualenv venv
Activate the environment
$ source venv/bin/activate
Install the development requirements (Virtual environment must be activated)
$ pip install -r requirements-dev.txt
For development a SQLite database is used, it is not recommended for productions usage. I recommend Postgresql for production.
Create the migrations files
$ python manage.py makemigrations
Migrate the database
$ python manage.py migrate
Create a superuser
$ python manage.py createsuperuser
Run the test suite
$ pytest
Start the development server
$ python manage.py runserver
In your browser go to
http://localhost:8000/
Create .env
file from template .env.dist
$ cp .env.dist .env
Edit the environment variables
$ vim .env
The
.env
file needs to be updated with the production settings
Some Deployment options
- Create an account
- Sign in
- Create or select a baby
- Click on the baby to access his journal
- Create, modify or delete posts