Skip to content
An open-sourced backend service for Acai iOS.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.hound.yml
.travis.yml
Dockerfile
README.md
docker_push
envrc.template
ormconfig.json
package-lock.json
package.json
server.pem.enc
tsconfig.json
tslint.json

README.md

Acai Backend

GitHub release GitHub contributors Build Status

A project by Cornell AppDev, a project team at Cornell University.

Installation

This project uses Node.js See installation guide and Typescript See installation guide.

Clone the project with

git clone https://github.com/cuappdev/acai-backend.git

After cloning the project, cd into the new directory and install dependencies with

npm install

After opening the project in your IDE, you can run it using

npm start run

Setting up database:

Make sure PostgreSQL is installed. After installation, start PostgreSQL and run the command

CREATE DATABASE acai;

If you get a database error, upon running npm start and you already have the database created try

DROP DATABASE acai;
CREATE DATABASE acai;

Connect to the database by running

psql acai

Environment Variables:

It is recommended to use direnv. To set up, run the following:

cp envrc.template .envrc

Configuration (optional)

We recommend using TSLint (deprecrated) for linting. If you are using VSCode, it can be downloaded directly through the Extensions panel.

You can’t perform that action at this time.