First, keep in mind that this application uses Amazon SES. Your account will initially be limited by Amazon. To increase these limits, check out Amazon's documentation here.
Before installing this application, you'll need some API keys from Google to handle authentication. This can be done in a few steps:
- Login to Google API Manager.
- Choose Select a project on the top left dropdown. Click on the + to create a new project,
mail-for-good
or (select it you have created it before). - In the left menu, select Dashboard. Now select Enable API, search for
Google+
and select it. At the top of the screen, ensure it's enabled by clicking on Enable. - In the left menu, select Credentials. Then click Create Credentials > OAuth client ID.
- Select Web Application. Name is as you wish, but under Authorised Javascript Origins put
http://localhost
, and under Authorised redirect URIs puthttp://localhost/auth/google/callback
. - Click Create. You will now have a Client ID and Client Secret. In your .env file, put the Client ID as your GOOGLE_CONSUMER_KEY, and the Client Secret as your GOOGLE_CONSUMER_SECRET.
The first step is to download Docker itself. The process for this differs depending your OS. You can find a guide here https://docs.docker.com/engine/installation/.
Now, clone the repository and change into it.
Edit the .env.example
file in your root directory.
After this, you'll need to create your own .env file. Check out the .env.example file in this repo. From the terminal, you can run cp .env.example .env
then edit the .env file with any editor of your choice. There are instruction in this file that you can follow.
Now run sudo docker-compose up
. This will run all the containers needed to launch this app, and will take some time to finish.
When the process is finished, the app will be exposed on port 80 and accessible by visiting http://[hostname]
.
- Install and run the Docker daemon.
- Clone the repository and change into it
git clone https://github.com/freeCodeCamp/Mail-for-Good && cd Mail-for-Good
. - Run
cp .env.example .env
then open.env
and edit it, passing in your own values. - Run
sudo docker-compose up
. Wait for it to finish. - Visit
http://[hostname]:8080
orlocalhost
if running locally.