Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •