Giter Club home page Giter Club logo

letscodethisweekend's Introduction

Let's Code This Weekend

Getting Started.


These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites.

What things you need to install the software and how to install them

Python3.7
Pip
Virtulenv(virtualenvwrapper preferably)

[Optional]

Virtulenvwrapper

Installing.

A step by step series of examples that tell you how to get a development env running

Python3.7

You’ll need to be logged in as a user with sudo access to be able to install packages on your Ubuntu system.

  1. Start by updating the packages list and installing the prerequisites:
sudo apt update
sudo apt install software-properties-common
  1. Next, add the deadsnakes PPA to your sources list:
sudo add-apt-repository ppa:deadsnakes/ppa
  • When prompted press Enter to continue:
  • Press [ENTER] to continue or Ctrl-c to cancel adding it.
  1. Once the repository is enabled, install Python 3.7 with:
sudo apt install python3.7
  1. At this point, Python 3.7 is installed on your Ubuntu system and ready to be used. You can verify it by typing:
python3.7 --version
PIP3

Install PIP3 on Ubuntu with Apt.

sudo apt install python3-pip
Virtulenv

Install the virtualenv using PIP3.

pip3 install virtualenv
Virtualenvwrapper

Read the virtualenvwrapper installation guide here Virtualenvwrapper NOTE: Follow all the steps in the guide.


Setup enviroment.


Create Virtualenv

Create a virtual to install all the packages you'll need for the project. NOTE: It's better to use virtualenvwrapper to create your virtualenv.

Using Virtualenvwrapper.

  1. Create your virtual envinment.
mkvirtualenv -p $(which python3.7) lctw
  • We use the p flag to specify which version of Python we want to use in our virtualenv.
  1. Activate your environment.
workon lctw

Using Virtualenv.

Virtualenv needs a directory to store the virtualenv files in, and the project is not the best place to place them, create the virtualenv in desired directory.

  1. Navigate to desired directory/folder.
cd navigate/some/where/desired/
  1. Create your environment
virtualenv -p $(which python3.7) lctw
  1. Activate your environment.
source /path/to/venv/bin/activate

Find out more about virtual environments in the Virtualens docs

Test virtualenv activity.

  1. Virtualenv name in brackets. Before doing anything to test if your virtualenv is active, your virtualenv name should be visible in brackets inside your cli, like so:
(lctw)~ 

or

(lctw)whatever-Your-cli-shows~
  1. pip3 freeze running:
Pip3 freeze

should return an empty list or nothing. 3. Python When you type in python inside your cli then Python3.7 should be launched, close Python by typing in quit(). If you type in which python the path that gets printed out will be for a python executable within your virtualenvironment. like so:

/path/to/your/lctw/venv/bin/python

Install Packages

  1. Navigate to your github project clone using cd.
  2. Inside your project navigate to your app, lctw.
  3. install all the packages like so:
pip3 install -r requirements.txt

Start development server.

Now that you have a running database service, start your development server by navigating to your application folder, inside your preoject folder:

cd ~/path/to/project/folder/lctw/

Start the server using the manage.py file created automatically by creating a django-application.

python3.7 manage.py runserver

Read more about the manage.py and runserver command here: runserver

NB:

  • Make sure your virtualenv is running.
  • Make sure you installed all packages in the requirements.txt file

The cli should return information about the server and the port, now check out the application on the active port. Go to a browser and view your application.

Creating superuser.

To have all the permission create a super user account for yourself, like so:

Python3.7 manage.py createsuperuser

Fill in all requested information. Find out more about the createsuperuser command.

Built With

  • Django - The web framework used.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use git for versioning.

Authors

LCTW Development team

Acknowledgments

  • Hat tip to anyone whose code was used

letscodethisweekend's People

Contributors

nicksoftware avatar sjk-lacoste avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

letscodethisweekend's Issues

Tutorial

External links are to be a many-to-many relationship

  • title
  • video
  • description
  • external_links(optional)

Step

Tutorials are to be many-to-many relationship

  • title
  • order
  • promo_video
  • tutorials
  • course
  • description

Link

  • title
  • url
  • description (optional)

Course

  • title
  • category
  • instructor
  • price
  • description
  • image
  • publish_date
  • is_published

Instructor

Skill is to be a many-to-many relationship

  • name
  • skill

Skills

  • name
  • url (optional)
  • description
  • image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.