Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heyjaywilson/wip-server
https://github.com/heyjaywilson/wip-server
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/heyjaywilson/wip-server
- Owner: heyjaywilson
- Created: 2023-01-12T23:29:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-28T20:59:20.000Z (over 1 year ago)
- Last Synced: 2024-05-02T01:05:37.599Z (7 months ago)
- Language: Swift
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Server for Work in Public app
The server is written in Swift and uses Vapor. The database is PostgreSQL.
## How to run
In Xcode
1. Open the project in Xcode
2. Make sure your `Custom Working Directory` is set
3. Run the project by hitting CMD+R
4. The console inside Xcode should say `[ NOTICE ] Server starting on http://127.0.0.1:8080`In the Terminal
1. Open the terminal
2. Run `swift run`
3. The terminal should say `[ NOTICE ] Server starting on http://127.0.0.1:8080` if running correctlyBoth consoles will log the requests
## Common issues
### Xcode can't find `.env` or `Public` variable
This is because the build scheme doesn't have the custom working directory set like the [docs](https://docs.vapor.codes/getting-started/xcode/) say to do.