Website for free programming tutorials and screencasts.
- Install PostgreSQL
- Execute in
psql
CREATE USER welovecodinguser WITH PASSWORD "wlc2017";
CREATE DATABASE welovecoding;
GRANT ALL PRIVILEGES ON DATABASE "welovecoding" to welovecodinguser;
- Keep Postgres running
To make Google authentication work in the local development environment, one needs to add a domain to /etc/hosts
that is registered for the application at Google.
macOS/Linux
sudo echo '127.0.0.1 localwelovecoding.com' >> /etc/hosts
Windows
- Open "C:\Windows\System32\drivers\etc\hosts"
- Add "127.0.0.1 localwelovecoding.com"
Make sure that you have a .env
configuration file located in backend/.env
.
yarn install
yarn dev
- Backend will be accessible at http://localhost:8080/
- Frontend will be accessible at http://localhost:8081/
If you have problems with the database, do the following:
cd backend
yarn database:reset
yarn database:populate