chrisfield / djact-web

A starter/demo react frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DJACT-WEB A starter/demo react frontend

A starter/demo React web frontend written in Typescript. An Django implemention of the backend it uses can be found here

Includes:

  • routing
  • authentification

The authentification makes api calls to a Django app that implements REST framework JWT

Getting Started

Check the node version. This was developed on v14.7.0 but it is likely to work on earlier versions too.

Clone the repo & cd to its root folder:

git clone git@github.com:chrisfield/djact-web.git
cd djact-web

Install dependencies

yarn install

or Use npm if you prefer

Override enviroment variables as needed

Rather than editing .env it is better to create a .env.local file.

Run the server

yarn start

CORS errors

If you get cross origin errors you may need to add the frontend url (like http://localhost:3030) toCORS_ORIGIN_WHITELIST in django api app settings.py.

About

A starter/demo react frontend


Languages

Language:TypeScript 78.9%Language:HTML 9.3%Language:JavaScript 6.2%Language:CSS 5.0%Language:Shell 0.6%