Logo Lanfrica

hack-in-sv/cherish-uganda

Type de record:

software
Créateur:
hac
Hôte:
Core for coordinating work and resources to support the work of Cherish Uganda # Initial Cherish Uganda core project This is an Express app designed to serve as the initial environment to support the work of Cherish Uganda. As the project grows, it will get a name and is likely to change significanly. ## Installation To start, clone the application from GitHub. ```Bash $ git clone github.com Cloning into 'cherish-uganda'... remote: Enumerating objects: 148, done. remote: Counting objects: 100% (148/148), done. remote: Compressing objects: 100% (83/83), done. remote: Total 148 (delta 43), reused 139 (delta 37), pack-reused 0 Receiving objects: 100% (148/148), 67.74 KiB | 745.00 KiB/s, done. Resolving deltas: 100% (43/43), done. $ cd cherish-uganda ``` ### Database Setup Prior to running the application, you will need to install PostgreSQL and create a database. By convention, all documentation will assume the existence of a database named `cherish-uganda`, but you are free to choose any database you like. Instructions below are for Mac users. For Windows users, see the PostgeSQL Installer and the getting started documentation. On a Mac, you can use Homebrew. This may take some time. ```Bash $ brew install postgres Updating Homebrew... ``` Once installed, you will need to create a db user and database. ```Bash $ createuser -W cherish-dbuser Password: $ createdb -O cherish-dbuser cherish-uganda ``` Once created, you can set the `DATABASE_URL` environmental variable as follows (see Environmental Variables below): ```Bash DATABASE_URL=postgres://cherish-dbuser:samplepassword@localhost:5432/cherish-uganda ``` The application will syncronize the database with the current data models as need on application startup. ### Environmental Variables In development, Cherish Children uses `dotenv` to define enviornmental variables via a `.env` file that is not checked into the source code repository. Supported environmental variables include: * `DATABASE_URL` The URL of the database to connect to * `GOOGLE …