Sample Django+React+Postgres application for use in Visual Studio Code and Azure
Перейти к файлу
Luciana Abud b61b19dd30
Merge pull request #21 from microsoft/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.15 to 4.17.21
2023-02-22 10:09:37 -08:00
.devcontainer Updates to container 2019-06-27 06:09:54 +00:00
.vscode Updates to container 2019-06-27 06:09:54 +00:00
scripts remove shlex import 2019-05-07 18:06:20 -07:00
tweeter Revert "tweeter app deployed in azure" 2019-06-07 16:28:49 -07:00
tweeter3 Revert "tweeter app deployed in azure" 2019-06-07 16:28:49 -07:00
.babelrc Cleanup code and make tweets work 2019-04-27 21:41:46 +00:00
.dockerignore fix multi-stage build 2019-05-07 23:37:12 -07:00
.env-sample Updates! 2019-05-07 21:57:00 -07:00
.gitignore Adding tests and login form code from luabud 2019-04-28 00:51:15 +00:00
Dockerfile fix multi-stage build 2019-05-07 23:37:12 -07:00
LICENSE Add files via upload 2019-04-26 16:20:38 -07:00
README.md Adding links to talk slides/code 2019-05-08 22:18:03 -07:00
SECURITY.md Microsoft mandatory file 2022-08-29 13:59:35 +00:00
azure-ci-pipeline.yml Set up CI with Azure Pipelines 2019-05-07 18:24:25 -07:00
azure-deploy-pipeline.yml Update image name 2019-05-07 23:09:03 -07:00
docker-compose.yml Revert "tweeter app deployed in azure" 2019-06-07 16:28:49 -07:00
manage.py Adding missing front-end code from tyreke 2019-04-27 20:31:02 +00:00
package-lock.json Merge pull request #21 from microsoft/dependabot/npm_and_yarn/lodash-4.17.21 2023-02-22 10:09:37 -08:00
package.json Updating npm packages 2020-06-20 13:27:01 -07:00
pytest.ini Adding tests and login form code from luabud 2019-04-28 00:51:15 +00:00
requirements.pipelines.txt Bump djangorestframework from 3.8.2 to 3.9.1 2019-06-07 23:35:00 +00:00
requirements.txt Update packages 2020-06-20 12:54:57 -07:00
uwsgi.ini Initial commit 2019-04-16 11:02:38 -07:00
webpack.config.js Removing browser prefixes in favor of auto-prefixer 2019-04-28 16:26:36 +00:00

README.md

Getting Started with Dev Containers

  1. Get set up with Visual Studio Code insiders, Docker and remote extensions instructions here

  2. If on windows, set git to use LF line endings:

    git config --global core.autocrlf false
    
  3. Clone repo

    git clone https://github.com/Microsoft/python-sample-tweeterapp
    
  4. From Visual Studio Code Insiders, run the Remote-Containers: Open Folder in Container... and select the python-sample-tweeterapp folder

After the dev container has installed and files appear in the explorer, you are good to go!

Run some code!

Build the node front end by opening a new terminal with Ctrl-Shift-` , and running:

npm install
npm run dev

Start the Django server by opening a new terminal (Ctrl-Shift-` ), and running:

python manage.py migrate
python manage.py loaddata initial_data
python manage.py runserver

Presentations

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.