Skip to content

gogirlorganisation/backend

Repository files navigation

Server backend for The Girl Code

Setup

  1. Install
  1. Clone this repository
git clone https://github.com/thegirlcode/backend.git
  1. Create keyfile as auth/keys.js:
module.exports = {
	googleID: 'googleSignInID',
	googleSecret: 'googleSignInSecret',
	facebookID: 'facebookSignInID',
	facebookSecret: 'facebookSignInSecret'
};
  1. Build docker images
docker-compose build
  1. Start containers
docker-compose up -d mongo

You need to wait a few seconds for the mongodb daemon to start and then you can start the web container with

docker-compose up web
  1. Site will be at localhost:62442

Note: In order for Facebook and Google login to work on localhost, you will need to do the following:

  1. Create a self-signed SSL certificate: https://github.com/FiloSottile/mkcert

  2. Install and setup nginx: https://nginx.org

  3. Use nginx to serve the self-signed certificate: https://stackoverflow.com/a/25857318

Or any other method of serving localhost:62442 as https://localhost. Site will be live at latter URL.

  1. You'll need to use nginx and certbot to create an SSL certificate and serve site over https://domain for production as Google and Facebook login will not work without it.

About

Server backend for The Girl Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •