A Django application that allows users to post their projects and get them reviewed by their peers
These instructions will get you copy of this project up and running for local development and testing purposes.
- Python
- Pipenv
pip install pipenv
- Git
- PostgreSQL
-
Clone this repository using
git clone
. Then, change your working directory to the repository.$ git clone https://github.com/trucktar/revvviews.git $ cd revvviews/
-
Install project and development dependencies.
$ pipenv sync
-
Activate the project's virtualenv
$ pipenv shell
Ensure you have PostgreSQL installed and running. Then,
-
Enter psql, a terminal-based front-end to PostgreSQL:
$ psql -U postgres
-
Run the following queries to create the db role and database.
postgres=# CREATE USER revvviews WITH CREATEDB; postgres=# CREATE DATABASE revvviews OWNER revvviews;
-
Create a
.env
file and set the following env variables:DATABASE_URL=postgres://revvviews@localhost/revvviews SECRET_KEY=suitable-for-development-only
-
Run the following commands to create the database tables:
python manage.py makemigrations python manage.py migrate
-
Create a superuser account.
python manage.py createsuperuser
-
Finally, fire up the server and navigate to http://127.0.0.1:8000/
python manage.py runserver
- Django - The web framework for perfectionists with deadlines.
- Bootstrap - The world’s most popular framework for building responsive, mobile-first sites.
Distributed under the MIT License. See LICENSE for more information.