Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/carltheperson/Otis

A text adventure creater that exports to native shell scripts
https://github.com/carltheperson/Otis

flask react text-adventure

Last synced: about 2 months ago
JSON representation

A text adventure creater that exports to native shell scripts

Awesome Lists containing this project

README

        

# Otis

![](screenshot.png)

Otis is a text adventure maker that converts to native shell scripts for different operating systems.
It will have it's own markdown language, and is meant to be ran in Docker.

You will be able to export to batch and bash.

Front-end will be React.
Back-end will be Flask.

Database will be MongdoDB.
Testing and building will be with Jenkins.

## Backend structure

### Database Adventures
Each adventure will be stored in the database in the collection "adventures".
This will include:

* title: The title of the adventure.
* source: The source code in Otis markdown.

### API endpoints

* **POST /adventure** Creates a new blank adventure with the title included in the body. Returns the id.
* **GET /adventure** Get an array of all adventures with the title and id.

* **GET /adventure/(id)** Returns the adventure object.
* **PUT /adventure/(id)** Applies any changes included in the request body.
* **DELETE /adventure/(id)** Deletes an adventure.

* **GET /export/(file)/(id)** Returns new file exported from adventure source.

### Otis markdown
Here is an example of an adventure written in Otis markdown:

```
This is the main screen.

* Here is an option {
Here is a screen inside an option.

* Another option {

}
}
* Here is another option {

}
```